home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / flex-2.5 / flex-2
Tape Archive  |  1996-05-29  |  1.3 MB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: flex-2

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file flex-2.5.3/, mode 755 , uid 2000 , gid 0 , size 0 , seconds 6153122300 default
98% file data default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 Kopftext: 'flex-2.5.3/' default (weak)
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 66 6c 65 78 2d 32 2e 35 | 2e 33 2f 00 00 00 00 00 |flex-2.5|.3/.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 32 30 |.... 7|55 . 20|
|00000070| 30 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |00 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 31 35 33 31 32 32 | 0 | 6153122|
|00000090| 33 30 30 20 20 20 35 33 | 37 33 00 20 00 00 00 00 |300 53|73. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 66 6c 65 78 2d 32 2e 35 | 2e 33 2f 52 45 41 44 4d |flex-2.5|.3/READM|
|00000210| 45 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |E.......|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 32 30 |.... 4|44 . 20|
|00000270| 30 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |00 . | 0 . |
|00000280| 20 20 20 33 37 37 32 20 | 20 35 37 33 36 30 35 32 | 3772 | 5736052|
|00000290| 36 34 32 20 20 20 36 33 | 37 30 00 20 00 00 00 00 |642 63|70. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 54 68 69 73 20 69 73 20 | 72 65 6c 65 61 73 65 20 |This is |release |
|00000410| 32 2e 35 20 6f 66 20 66 | 6c 65 78 2e 20 20 53 65 |2.5 of f|lex. Se|
|00000420| 65 20 22 76 65 72 73 69 | 6f 6e 2e 68 22 20 66 6f |e "versi|on.h" fo|
|00000430| 72 20 74 68 65 20 65 78 | 61 63 74 20 70 61 74 63 |r the ex|act patc|
|00000440| 68 2d 6c 65 76 65 6c 2e | 0a 0a 53 65 65 20 74 68 |h-level.|..See th|
|00000450| 65 20 66 69 6c 65 20 22 | 4e 45 57 53 22 20 74 6f |e file "|NEWS" to|
|00000460| 20 66 69 6e 64 20 6f 75 | 74 20 77 68 61 74 20 69 | find ou|t what i|
|00000470| 73 20 6e 65 77 20 69 6e | 20 74 68 69 73 20 46 6c |s new in| this Fl|
|00000480| 65 78 20 72 65 6c 65 61 | 73 65 2e 0a 0a 52 65 61 |ex relea|se...Rea|
|00000490| 64 20 74 68 65 20 66 69 | 6c 65 20 22 49 4e 53 54 |d the fi|le "INST|
|000004a0| 41 4c 4c 22 20 66 6f 72 | 20 67 65 6e 65 72 61 6c |ALL" for| general|
|000004b0| 20 69 6e 73 74 61 6c 6c | 61 74 69 6f 6e 20 64 69 | install|ation di|
|000004c0| 72 65 63 74 69 76 65 73 | 2e 20 20 50 65 65 6b 20 |rectives|. Peek |
|000004d0| 6e 65 61 72 0a 74 68 65 | 20 62 65 67 69 6e 6e 69 |near.the| beginni|
|000004e0| 6e 67 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 22 |ng of th|e file "|
|000004f0| 4d 61 6b 65 66 69 6c 65 | 2e 69 6e 22 20 66 6f 72 |Makefile|.in" for|
|00000500| 20 73 70 65 63 69 61 6c | 20 44 45 46 53 20 76 61 | special| DEFS va|
|00000510| 6c 75 65 73 2e 20 20 4f | 6e 20 6d 6f 73 74 0a 73 |lues. O|n most.s|
|00000520| 79 73 74 65 6d 73 2c 20 | 79 6f 75 20 63 61 6e 20 |ystems, |you can |
|00000530| 6a 75 73 74 20 72 75 6e | 20 74 68 65 20 22 63 6f |just run| the "co|
|00000540| 6e 66 69 67 75 72 65 22 | 20 73 63 72 69 70 74 20 |nfigure"| script |
|00000550| 61 6e 64 20 74 79 70 65 | 20 22 6d 61 6b 65 22 20 |and type| "make" |
|00000560| 74 6f 20 62 75 69 6c 64 | 0a 66 6c 65 78 3b 20 74 |to build|.flex; t|
|00000570| 68 65 6e 20 22 6d 61 6b | 65 20 63 68 65 63 6b 22 |hen "mak|e check"|
|00000580| 20 74 6f 20 74 65 73 74 | 20 77 68 65 74 68 65 72 | to test| whether|
|00000590| 20 69 74 20 62 75 69 6c | 74 20 63 6f 72 72 65 63 | it buil|t correc|
|000005a0| 74 6c 79 3b 20 61 6e 64 | 20 69 66 20 69 74 20 64 |tly; and| if it d|
|000005b0| 69 64 2c 0a 74 68 65 6e | 20 22 6d 61 6b 65 20 69 |id,.then| "make i|
|000005c0| 6e 73 74 61 6c 6c 22 20 | 74 6f 20 69 6e 73 74 61 |nstall" |to insta|
|000005d0| 6c 6c 20 69 74 2e 0a 0a | 49 66 20 79 6f 75 27 72 |ll it...|If you'r|
|000005e0| 65 20 66 65 65 6c 69 6e | 67 20 61 64 76 65 6e 74 |e feelin|g advent|
|000005f0| 75 72 6f 75 73 2c 20 79 | 6f 75 20 63 61 6e 20 61 |urous, y|ou can a|
|00000600| 6c 73 6f 20 69 73 73 75 | 65 20 22 6d 61 6b 65 20 |lso issu|e "make |
|00000610| 62 69 67 63 68 65 63 6b | 22 20 28 62 65 0a 70 72 |bigcheck|" (be.pr|
|00000620| 65 70 61 72 65 64 20 74 | 6f 20 77 61 69 74 20 61 |epared t|o wait a|
|00000630| 20 77 68 69 6c 65 29 2e | 0a 0a 4e 6f 74 65 20 74 | while).|..Note t|
|00000640| 68 61 74 20 66 6c 65 78 | 20 69 73 20 64 69 73 74 |hat flex| is dist|
|00000650| 72 69 62 75 74 65 64 20 | 75 6e 64 65 72 20 61 20 |ributed |under a |
|00000660| 63 6f 70 79 72 69 67 68 | 74 20 76 65 72 79 20 73 |copyrigh|t very s|
|00000670| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 61 74 20 6f |imilar t|o that o|
|00000680| 66 0a 42 53 44 20 55 6e | 69 78 2c 20 61 6e 64 20 |f.BSD Un|ix, and |
|00000690| 6e 6f 74 20 75 6e 64 65 | 72 20 74 68 65 20 47 4e |not unde|r the GN|
|000006a0| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
|000006b0| 20 4c 69 63 65 6e 73 65 | 20 28 47 50 4c 29 2c 20 | License| (GPL), |
|000006c0| 65 78 63 65 70 74 20 66 | 6f 72 0a 74 68 65 20 22 |except f|or.the "|
|000006d0| 63 6f 6e 66 69 67 75 72 | 65 22 20 73 63 72 69 70 |configur|e" scrip|
|000006e0| 74 2c 20 77 68 69 63 68 | 20 69 73 20 63 6f 76 65 |t, which| is cove|
|000006f0| 72 65 64 20 62 79 20 74 | 68 65 20 47 50 4c 2e 0a |red by t|he GPL..|
|00000700| 0a 4d 61 6e 79 20 74 68 | 61 6e 6b 73 20 74 6f 20 |.Many th|anks to |
|00000710| 74 68 65 20 32 2e 35 20 | 62 65 74 61 2d 74 65 73 |the 2.5 |beta-tes|
|00000720| 74 65 72 73 20 66 6f 72 | 20 66 69 6e 64 69 6e 67 |ters for| finding|
|00000730| 20 62 75 67 73 20 61 6e | 64 20 68 65 6c 70 69 6e | bugs an|d helpin|
|00000740| 67 20 74 65 73 74 20 61 | 6e 64 0a 69 6e 63 72 65 |g test a|nd.incre|
|00000750| 61 73 65 20 70 6f 72 74 | 61 62 69 6c 69 74 79 3a |ase port|ability:|
|00000760| 20 53 74 61 6e 20 41 64 | 65 72 6d 61 6e 6e 2c 20 | Stan Ad|ermann, |
|00000770| 53 63 6f 74 74 20 44 61 | 76 69 64 20 44 61 6e 69 |Scott Da|vid Dani|
|00000780| 65 6c 73 2c 20 43 68 61 | 72 6c 65 73 20 45 6c 6c |els, Cha|rles Ell|
|00000790| 69 6f 74 74 2c 0a 4a 6f | 65 20 47 61 79 64 61 2c |iott,.Jo|e Gayda,|
|000007a0| 20 43 68 72 69 73 20 4d | 65 69 65 72 2c 20 4a 61 | Chris M|eier, Ja|
|000007b0| 6d 65 73 20 4e 6f 72 64 | 62 79 2c 20 54 65 72 72 |mes Nord|by, Terr|
|000007c0| 65 6e 63 65 20 4f 27 4b | 61 6e 65 2c 20 4b 61 72 |ence O'K|ane, Kar|
|000007d0| 73 74 65 6e 20 50 61 68 | 6e 6b 65 2c 0a 46 72 61 |sten Pah|nke,.Fra|
|000007e0| 6e 63 6f 69 73 20 50 69 | 6e 61 72 64 2c 20 50 61 |ncois Pi|nard, Pa|
|000007f0| 74 20 52 61 6e 6b 69 6e | 2c 20 41 6e 64 72 65 61 |t Rankin|, Andrea|
|00000800| 73 20 53 63 68 65 72 65 | 72 2c 20 4d 61 72 63 20 |s Schere|r, Marc |
|00000810| 57 69 65 73 65 2c 20 4e | 61 74 68 61 6e 20 5a 65 |Wiese, N|athan Ze|
|00000820| 6c 6c 65 2e 0a 0a 50 6c | 65 61 73 65 20 73 65 6e |lle...Pl|ease sen|
|00000830| 64 20 62 75 67 20 72 65 | 70 6f 72 74 73 20 61 6e |d bug re|ports an|
|00000840| 64 20 66 65 65 64 62 61 | 63 6b 20 74 6f 3a 20 56 |d feedba|ck to: V|
|00000850| 65 72 6e 20 50 61 78 73 | 6f 6e 20 28 76 65 72 6e |ern Paxs|on (vern|
|00000860| 40 65 65 2e 6c 62 6c 2e | 67 6f 76 29 2e 0a 0a 0a |@ee.lbl.|gov)....|
|00000870| 54 68 65 20 66 6c 65 78 | 20 64 69 73 74 72 69 62 |The flex| distrib|
|00000880| 75 74 69 6f 6e 20 63 6f | 6e 73 69 73 74 73 20 6f |ution co|nsists o|
|00000890| 66 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |f the fo|llowing |
|000008a0| 66 69 6c 65 73 3a 0a 0a | 09 52 45 41 44 4d 45 09 |files:..|.README.|
|000008b0| 09 54 68 69 73 20 6d 65 | 73 73 61 67 65 0a 0a 09 |.This me|ssage...|
|000008c0| 4e 45 57 53 09 09 44 69 | 66 66 65 72 65 6e 63 65 |NEWS..Di|fference|
|000008d0| 73 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 76 61 |s betwee|n the va|
|000008e0| 72 69 6f 75 73 20 72 65 | 6c 65 61 73 65 73 0a 0a |rious re|leases..|
|000008f0| 09 49 4e 53 54 41 4c 4c | 09 09 47 65 6e 65 72 61 |.INSTALL|..Genera|
|00000900| 6c 20 69 6e 73 74 61 6c | 6c 61 74 69 6f 6e 20 69 |l instal|lation i|
|00000910| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0a 0a 09 43 4f 50 |nformati|on...COP|
|00000920| 59 49 4e 47 09 09 66 6c | 65 78 27 73 20 63 6f 70 |YING..fl|ex's cop|
|00000930| 79 72 69 67 68 74 0a 0a | 09 63 6f 6e 66 2e 69 6e |yright..|.conf.in|
|00000940| 2c 20 63 6f 6e 66 69 67 | 75 72 65 2e 69 6e 2c 20 |, config|ure.in, |
|00000950| 63 6f 6e 66 69 67 75 72 | 65 2c 20 4d 61 6b 65 66 |configur|e, Makef|
|00000960| 69 6c 65 2e 69 6e 2c 20 | 69 6e 73 74 61 6c 6c 2e |ile.in, |install.|
|00000970| 73 68 2c 0a 09 09 6d 6b | 69 6e 73 74 61 6c 6c 64 |sh,...mk|installd|
|00000980| 69 72 73 0a 09 09 09 65 | 6c 65 6d 65 6e 74 73 20 |irs....e|lements |
|00000990| 6f 66 20 74 68 65 20 22 | 61 75 74 6f 63 6f 6e 66 |of the "|autoconf|
|000009a0| 22 20 61 75 74 6f 2d 63 | 6f 6e 66 69 67 75 72 61 |" auto-c|onfigura|
|000009b0| 74 69 6f 6e 20 70 72 6f | 63 65 73 73 0a 0a 09 66 |tion pro|cess...f|
|000009c0| 6c 65 78 64 65 66 2e 68 | 2c 20 70 61 72 73 65 2e |lexdef.h|, parse.|
|000009d0| 79 2c 20 73 63 61 6e 2e | 6c 2c 20 63 63 6c 2e 63 |y, scan.|l, ccl.c|
|000009e0| 2c 20 64 66 61 2e 63 2c | 20 65 63 73 2e 63 2c 20 |, dfa.c,| ecs.c, |
|000009f0| 67 65 6e 2e 63 2c 20 6d | 61 69 6e 2e 63 2c 0a 09 |gen.c, m|ain.c,..|
|00000a00| 6d 69 73 63 2e 63 2c 20 | 6e 66 61 2e 63 2c 20 73 |misc.c, |nfa.c, s|
|00000a10| 79 6d 2e 63 2c 20 74 62 | 6c 63 6d 70 2e 63 2c 20 |ym.c, tb|lcmp.c, |
|00000a20| 79 79 6c 65 78 2e 63 09 | 20 0a 09 09 09 73 6f 75 |yylex.c.| ....sou|
|00000a30| 72 63 65 20 66 69 6c 65 | 73 0a 0a 09 76 65 72 73 |rce file|s...vers|
|00000a40| 69 6f 6e 2e 68 09 76 65 | 72 73 69 6f 6e 20 6f 66 |ion.h.ve|rsion of|
|00000a50| 20 74 68 69 73 20 66 6c | 65 78 20 72 65 6c 65 61 | this fl|ex relea|
|00000a60| 73 65 0a 0a 09 66 6c 65 | 78 2e 73 6b 6c 09 66 6c |se...fle|x.skl.fl|
|00000a70| 65 78 20 73 63 61 6e 6e | 65 72 20 73 6b 65 6c 65 |ex scann|er skele|
|00000a80| 74 6f 6e 0a 09 6d 6b 73 | 6b 65 6c 2e 73 68 09 73 |ton..mks|kel.sh.s|
|00000a90| 63 72 69 70 74 20 66 6f | 72 20 63 6f 6e 76 65 72 |cript fo|r conver|
|00000aa0| 74 69 6e 67 20 66 6c 65 | 78 2e 73 6b 6c 20 74 6f |ting fle|x.skl to|
|00000ab0| 20 43 20 73 6f 75 72 63 | 65 20 66 69 6c 65 20 73 | C sourc|e file s|
|00000ac0| 6b 65 6c 2e 63 0a 09 73 | 6b 65 6c 2e 63 09 09 70 |kel.c..s|kel.c..p|
|00000ad0| 72 65 2d 63 6f 6e 76 65 | 72 74 65 64 20 43 20 76 |re-conve|rted C v|
|00000ae0| 65 72 73 69 6f 6e 20 6f | 66 20 66 6c 65 78 2e 73 |ersion o|f flex.s|
|00000af0| 6b 6c 0a 0a 09 6c 69 62 | 6d 61 69 6e 2e 63 09 66 |kl...lib|main.c.f|
|00000b00| 6c 65 78 20 6c 69 62 72 | 61 72 79 20 28 2d 6c 66 |lex libr|ary (-lf|
|00000b10| 6c 29 20 73 6f 75 72 63 | 65 73 0a 09 6c 69 62 79 |l) sourc|es..liby|
|00000b20| 79 77 72 61 70 2e 63 0a | 0a 09 69 6e 69 74 73 63 |ywrap.c.|..initsc|
|00000b30| 61 6e 2e 63 09 70 72 65 | 2d 66 6c 65 78 27 64 20 |an.c.pre|-flex'd |
|00000b40| 76 65 72 73 69 6f 6e 20 | 6f 66 20 73 63 61 6e 2e |version |of scan.|
|00000b50| 6c 0a 0a 09 46 6c 65 78 | 4c 65 78 65 72 2e 68 09 |l...Flex|Lexer.h.|
|00000b60| 68 65 61 64 65 72 20 66 | 69 6c 65 20 66 6f 72 20 |header f|ile for |
|00000b70| 43 2b 2b 20 6c 65 78 65 | 72 20 63 6c 61 73 73 0a |C++ lexe|r class.|
|00000b80| 0a 09 66 6c 65 78 2e 31 | 09 09 75 73 65 72 20 64 |..flex.1|..user d|
|00000b90| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 0a 0a 09 4d |ocumenta|tion...M|
|00000ba0| 49 53 43 2f 09 09 61 20 | 64 69 72 65 63 74 6f 72 |ISC/..a |director|
|00000bb0| 79 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 6d 69 73 |y contai|ning mis|
|00000bc0| 63 65 6c 6c 61 6e 65 6f | 75 73 20 63 6f 6e 74 72 |cellaneo|us contr|
|00000bd0| 69 62 75 74 69 6f 6e 73 | 2e 0a 09 09 09 53 65 65 |ibutions|.....See|
|00000be0| 20 4d 49 53 43 2f 52 45 | 41 44 4d 45 20 66 6f 72 | MISC/RE|ADME for|
|00000bf0| 20 64 65 74 61 69 6c 73 | 2e 0a 00 08 2e 63 73 68 | details|.....csh|
|00000c00| 66 6c 65 78 2d 32 2e 35 | 2e 33 2f 4e 45 57 53 00 |flex-2.5|.3/NEWS.|
|00000c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 32 30 |.... 4|44 . 20|
|00000c70| 30 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |00 . | 0 . |
|00000c80| 20 31 33 31 37 31 30 20 | 20 36 31 35 33 31 32 32 | 131710 | 6153122|
|00000c90| 32 34 30 20 20 20 36 32 | 32 33 00 20 00 00 00 00 |240 62|23. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 43 68 61 6e 67 65 73 20 | 62 65 74 77 65 65 6e 20 |Changes |between |
|00000e10| 72 65 6c 65 61 73 65 20 | 32 2e 35 2e 33 20 28 32 |release |2.5.3 (2|
|00000e20| 39 4d 61 79 39 36 29 20 | 61 6e 64 20 72 65 6c 65 |9May96) |and rele|
|00000e30| 61 73 65 20 32 2e 35 2e | 32 3a 0a 0a 09 2d 20 53 |ase 2.5.|2:...- S|
|00000e40| 6f 6d 65 20 73 65 72 69 | 6f 75 73 20 62 75 67 73 |ome seri|ous bugs|
|00000e50| 20 69 6e 20 79 79 6d 6f | 72 65 28 29 20 68 61 76 | in yymo|re() hav|
|00000e60| 65 20 62 65 65 6e 20 66 | 69 78 65 64 2e 20 20 49 |e been f|ixed. I|
|00000e70| 6e 20 70 61 72 74 69 63 | 75 6c 61 72 2c 0a 09 20 |n partic|ular,.. |
|00000e80| 20 77 68 65 6e 20 75 73 | 69 6e 67 20 41 54 26 54 | when us|ing AT&T|
|00000e90| 2d 6c 65 78 2d 63 6f 6d | 70 61 74 69 62 69 6c 69 |-lex-com|patibili|
|00000ea0| 74 79 20 6f 72 20 25 61 | 72 72 61 79 2c 20 79 6f |ty or %a|rray, yo|
|00000eb0| 75 20 63 61 6e 20 69 6e | 74 65 72 6d 69 78 0a 09 |u can in|termix..|
|00000ec0| 20 20 63 61 6c 6c 73 20 | 74 6f 20 69 6e 70 75 74 | calls |to input|
|00000ed0| 28 29 2c 20 75 6e 70 75 | 74 28 29 2c 20 61 6e 64 |(), unpu|t(), and|
|00000ee0| 20 79 79 6d 6f 72 65 28 | 29 2e 20 20 28 54 68 69 | yymore(|). (Thi|
|00000ef0| 73 20 73 74 69 6c 6c 20 | 64 6f 65 73 6e 27 74 0a |s still |doesn't.|
|00000f00| 09 20 20 77 6f 72 6b 20 | 66 6f 72 20 25 70 6f 69 |. work |for %poi|
|00000f10| 6e 74 65 72 2c 20 61 6e | 64 20 69 73 6e 27 74 20 |nter, an|d isn't |
|00000f20| 6c 69 6b 65 6c 79 20 74 | 6f 20 69 6e 20 74 68 65 |likely t|o in the|
|00000f30| 20 66 75 74 75 72 65 2e | 29 0a 0a 09 2d 20 41 20 | future.|)...- A |
|00000f40| 62 75 67 20 69 6e 20 68 | 61 6e 64 6c 69 6e 67 20 |bug in h|andling |
|00000f50| 4e 55 4c 27 73 20 69 6e | 20 74 68 65 20 69 6e 70 |NUL's in| the inp|
|00000f60| 75 74 20 73 74 72 65 61 | 6d 20 6f 66 20 73 63 61 |ut strea|m of sca|
|00000f70| 6e 6e 65 72 73 20 75 73 | 69 6e 67 0a 09 20 20 52 |nners us|ing.. R|
|00000f80| 45 4a 45 43 54 20 68 61 | 73 20 62 65 65 6e 20 66 |EJECT ha|s been f|
|00000f90| 69 78 65 64 2e 0a 0a 09 | 2d 20 54 68 65 20 64 65 |ixed....|- The de|
|00000fa0| 66 61 75 6c 74 20 6d 61 | 69 6e 28 29 20 69 6e 20 |fault ma|in() in |
|00000fb0| 6c 69 62 66 6c 2e 61 20 | 6e 6f 77 20 72 65 70 65 |libfl.a |now repe|
|00000fc0| 61 74 65 64 6c 79 20 63 | 61 6c 6c 73 20 79 79 6c |atedly c|alls yyl|
|00000fd0| 65 78 28 29 20 75 6e 74 | 69 6c 0a 09 20 20 69 74 |ex() unt|il.. it|
|00000fe0| 20 72 65 74 75 72 6e 73 | 20 30 2c 20 72 61 74 68 | returns| 0, rath|
|00000ff0| 65 72 20 74 68 61 6e 20 | 6a 75 73 74 20 63 61 6c |er than |just cal|
|00001000| 6c 69 6e 67 20 69 74 20 | 6f 6e 63 65 2e 0a 0a 09 |ling it |once....|
|00001010| 2d 20 4d 69 6e 6f 72 20 | 74 77 65 61 6b 20 66 6f |- Minor |tweak fo|
|00001020| 72 20 57 69 6e 64 6f 77 | 73 20 4e 54 20 4d 61 6b |r Window|s NT Mak|
|00001030| 65 66 69 6c 65 2c 20 4d | 49 53 43 2f 4e 54 2f 4d |efile, M|ISC/NT/M|
|00001040| 61 6b 65 66 69 6c 65 2e | 0a 0a 0a 43 68 61 6e 67 |akefile.|...Chang|
|00001050| 65 73 20 62 65 74 77 65 | 65 6e 20 72 65 6c 65 61 |es betwe|en relea|
|00001060| 73 65 20 32 2e 35 2e 32 | 20 28 32 35 41 70 72 39 |se 2.5.2| (25Apr9|
|00001070| 35 29 20 61 6e 64 20 72 | 65 6c 65 61 73 65 20 32 |5) and r|elease 2|
|00001080| 2e 35 2e 31 3a 0a 0a 09 | 2d 20 54 68 65 20 2d 2d |.5.1:...|- The --|
|00001090| 70 72 65 66 69 78 20 63 | 6f 6e 66 69 67 75 72 61 |prefix c|onfigura|
|000010a0| 74 69 6f 6e 20 6f 70 74 | 69 6f 6e 20 6e 6f 77 20 |tion opt|ion now |
|000010b0| 77 6f 72 6b 73 2e 0a 0a | 09 2d 20 41 20 62 75 67 |works...|.- A bug|
|000010c0| 20 74 68 61 74 20 63 6f | 6d 70 6c 65 74 65 6c 79 | that co|mpletely|
|000010d0| 20 62 72 6f 6b 65 20 74 | 68 65 20 22 2d 43 66 22 | broke t|he "-Cf"|
|000010e0| 20 74 61 62 6c 65 20 63 | 6f 6d 70 72 65 73 73 69 | table c|ompressi|
|000010f0| 6f 6e 0a 09 20 20 6f 70 | 74 69 6f 6e 20 68 61 73 |on.. op|tion has|
|00001100| 20 62 65 65 6e 20 66 69 | 78 65 64 2e 0a 0a 09 2d | been fi|xed....-|
|00001110| 20 41 20 6d 61 6a 6f 72 | 20 68 65 61 64 61 63 68 | A major| headach|
|00001120| 65 20 69 6e 76 6f 6c 76 | 69 6e 67 20 22 63 6f 6e |e involv|ing "con|
|00001130| 73 74 22 20 64 65 63 6c | 61 72 61 74 6f 72 73 20 |st" decl|arators |
|00001140| 61 6e 64 20 53 6f 6c 61 | 72 69 73 0a 09 20 20 73 |and Sola|ris.. s|
|00001150| 79 73 74 65 6d 73 20 68 | 61 73 20 62 65 65 6e 20 |ystems h|as been |
|00001160| 66 69 78 65 64 2e 0a 0a | 09 2d 20 41 6e 20 6f 63 |fixed...|.- An oc|
|00001170| 74 61 6c 20 65 73 63 61 | 70 65 20 73 65 71 75 65 |tal esca|pe seque|
|00001180| 6e 63 65 20 69 6e 20 61 | 20 66 6c 65 78 20 72 65 |nce in a| flex re|
|00001190| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|000011a0| 20 6d 75 73 74 0a 09 20 | 20 6e 6f 77 20 63 6f 6e | must.. | now con|
|000011b0| 74 61 69 6e 20 6f 6e 6c | 79 20 74 68 65 20 64 69 |tain onl|y the di|
|000011c0| 67 69 74 73 20 30 2d 37 | 2e 0a 0a 09 2d 20 59 6f |gits 0-7|....- Yo|
|000011d0| 75 20 63 61 6e 20 6e 6f | 77 20 75 73 65 20 22 2d |u can no|w use "-|
|000011e0| 2d 22 20 6f 6e 20 74 68 | 65 20 66 6c 65 78 20 63 |-" on th|e flex c|
|000011f0| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 74 6f 20 6d |ommand l|ine to m|
|00001200| 61 72 6b 20 74 68 65 0a | 09 20 20 65 6e 64 20 6f |ark the.|. end o|
|00001210| 66 20 66 6c 65 78 20 6f | 70 74 69 6f 6e 73 2e 0a |f flex o|ptions..|
|00001220| 0a 09 2d 20 59 6f 75 20 | 63 61 6e 20 6e 6f 77 20 |..- You |can now |
|00001230| 73 70 65 63 69 66 79 20 | 74 68 65 20 66 69 6c 65 |specify |the file|
|00001240| 6e 61 6d 65 20 27 2d 27 | 20 61 73 20 61 20 73 79 |name '-'| as a sy|
|00001250| 6e 6f 6e 79 6d 20 66 6f | 72 20 73 74 64 69 6e 2e |nonym fo|r stdin.|
|00001260| 0a 0a 09 2d 20 42 79 20 | 64 65 66 61 75 6c 74 2c |...- By |default,|
|00001270| 20 74 68 65 20 73 63 61 | 6e 6e 65 72 73 20 67 65 | the sca|nners ge|
|00001280| 6e 65 72 61 74 65 64 20 | 62 79 20 66 6c 65 78 20 |nerated |by flex |
|00001290| 6e 6f 20 6c 6f 6e 67 65 | 72 0a 09 20 20 73 74 61 |no longe|r.. sta|
|000012a0| 74 69 63 61 6c 6c 79 20 | 69 6e 69 74 69 61 6c 69 |tically |initiali|
|000012b0| 7a 65 20 79 79 69 6e 20 | 61 6e 64 20 79 79 6f 75 |ze yyin |and yyou|
|000012c0| 74 20 74 6f 20 73 74 64 | 69 6e 20 61 6e 64 20 73 |t to std|in and s|
|000012d0| 74 64 6f 75 74 2e 0a 09 | 20 20 54 68 69 73 20 63 |tdout...| This c|
|000012e0| 68 61 6e 67 65 20 69 73 | 20 6e 65 63 65 73 73 61 |hange is| necessa|
|000012f0| 72 79 20 62 65 63 61 75 | 73 65 20 69 6e 20 73 6f |ry becau|se in so|
|00001300| 6d 65 20 41 4e 53 49 20 | 65 6e 76 69 72 6f 6e 6d |me ANSI |environm|
|00001310| 65 6e 74 73 2c 0a 09 20 | 20 73 74 64 69 6e 20 61 |ents,.. | stdin a|
|00001320| 6e 64 20 73 74 64 6f 75 | 74 20 61 72 65 20 6e 6f |nd stdou|t are no|
|00001330| 74 20 63 6f 6d 70 69 6c | 65 2d 74 69 6d 65 20 63 |t compil|e-time c|
|00001340| 6f 6e 73 74 61 6e 74 2e | 20 20 59 6f 75 20 63 61 |onstant.| You ca|
|00001350| 6e 0a 09 20 20 66 6f 72 | 63 65 20 74 68 65 20 69 |n.. for|ce the i|
|00001360| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 20 75 73 |nitializ|ation us|
|00001370| 69 6e 67 20 22 25 6f 70 | 74 69 6f 6e 20 73 74 64 |ing "%op|tion std|
|00001380| 69 6e 69 74 22 20 69 6e | 20 74 68 65 20 66 69 72 |init" in| the fir|
|00001390| 73 74 0a 09 20 20 73 65 | 63 74 69 6f 6e 20 6f 66 |st.. se|ction of|
|000013a0| 20 79 6f 75 72 20 66 6c | 65 78 20 69 6e 70 75 74 | your fl|ex input|
|000013b0| 2e 0a 0a 09 2d 20 22 25 | 6f 70 74 69 6f 6e 20 6e |....- "%|option n|
|000013c0| 6f 75 6e 70 75 74 22 20 | 6e 6f 77 20 63 6f 72 72 |ounput" |now corr|
|000013d0| 65 63 74 6c 79 20 6f 6d | 69 74 73 20 74 68 65 20 |ectly om|its the |
|000013e0| 75 6e 70 75 74 28 29 20 | 72 6f 75 74 69 6e 65 0a |unput() |routine.|
|000013f0| 09 20 20 66 72 6f 6d 20 | 74 68 65 20 6f 75 74 70 |. from |the outp|
|00001400| 75 74 2e 0a 0a 09 2d 20 | 22 6d 61 6b 65 20 63 6c |ut....- |"make cl|
|00001410| 65 61 6e 22 20 6e 6f 77 | 20 72 65 6d 6f 76 65 73 |ean" now| removes|
|00001420| 20 63 6f 6e 66 69 67 2e | 6c 6f 67 2c 20 63 6f 6e | config.|log, con|
|00001430| 66 69 67 2e 63 61 63 68 | 65 2c 20 61 6e 64 20 74 |fig.cach|e, and t|
|00001440| 68 65 0a 09 20 20 66 6c | 65 78 20 62 69 6e 61 72 |he.. fl|ex binar|
|00001450| 79 2e 20 20 54 68 65 20 | 66 61 63 74 20 74 68 61 |y. The |fact tha|
|00001460| 74 20 69 74 20 72 65 6d | 6f 76 65 73 20 74 68 65 |t it rem|oves the|
|00001470| 20 66 6c 65 78 20 62 69 | 6e 61 72 79 20 6d 65 61 | flex bi|nary mea|
|00001480| 6e 73 0a 09 20 20 79 6f | 75 20 73 68 6f 75 6c 64 |ns.. yo|u should|
|00001490| 20 74 61 6b 65 20 63 61 | 72 65 20 69 66 20 6d 61 | take ca|re if ma|
|000014a0| 6b 69 6e 67 20 63 68 61 | 6e 67 65 73 20 74 6f 20 |king cha|nges to |
|000014b0| 73 63 61 6e 2e 6c 2c 20 | 74 6f 20 6d 61 6b 65 0a |scan.l, |to make.|
|000014c0| 09 20 20 73 75 72 65 20 | 79 6f 75 20 64 6f 6e 27 |. sure |you don'|
|000014d0| 74 20 77 69 6e 64 20 75 | 70 20 69 6e 20 61 20 62 |t wind u|p in a b|
|000014e0| 6f 6f 74 73 74 72 61 70 | 20 70 72 6f 62 6c 65 6d |ootstrap| problem|
|000014f0| 2e 0a 0a 09 2d 20 49 6e | 20 67 65 6e 65 72 61 6c |....- In| general|
|00001500| 2c 20 74 68 65 20 4d 61 | 6b 65 66 69 6c 65 20 68 |, the Ma|kefile h|
|00001510| 61 73 20 62 65 65 6e 20 | 72 65 77 6f 72 6b 65 64 |as been |reworked|
|00001520| 20 73 6f 6d 65 77 68 61 | 74 20 28 74 68 61 6e 6b | somewha|t (thank|
|00001530| 73 0a 09 20 20 74 6f 20 | 46 72 61 6e 63 6f 69 73 |s.. to |Francois|
|00001540| 20 50 69 6e 61 72 64 29 | 20 66 6f 72 20 61 64 64 | Pinard)| for add|
|00001550| 65 64 20 66 6c 65 78 69 | 62 69 6c 69 74 79 20 2d |ed flexi|bility -|
|00001560| 20 6d 6f 72 65 20 63 68 | 61 6e 67 65 73 20 77 69 | more ch|anges wi|
|00001570| 6c 6c 0a 09 20 20 66 6f | 6c 6c 6f 77 20 69 6e 20 |ll.. fo|llow in |
|00001580| 73 75 62 73 65 71 75 65 | 6e 74 20 72 65 6c 65 61 |subseque|nt relea|
|00001590| 73 65 73 2e 0a 0a 09 2d | 20 54 68 65 20 2e 74 65 |ses....-| The .te|
|000015a0| 78 69 20 61 6e 64 20 2e | 69 6e 66 6f 20 66 69 6c |xi and .|info fil|
|000015b0| 65 73 20 69 6e 20 4d 49 | 53 43 2f 74 65 78 69 6e |es in MI|SC/texin|
|000015c0| 66 6f 2f 20 68 61 76 65 | 20 62 65 65 6e 20 75 70 |fo/ have| been up|
|000015d0| 64 61 74 65 64 2c 0a 09 | 20 20 74 68 61 6e 6b 73 |dated,..| thanks|
|000015e0| 20 61 6c 73 6f 20 74 6f | 20 46 72 61 6e 63 6f 69 | also to| Francoi|
|000015f0| 73 20 50 69 6e 61 72 64 | 2e 0a 0a 09 2d 20 54 68 |s Pinard|....- Th|
|00001600| 65 20 46 6c 65 78 4c 65 | 78 65 72 3a 3a 79 79 6c |e FlexLe|xer::yyl|
|00001610| 65 78 28 69 73 74 72 65 | 61 6d 2a 20 6e 65 77 5f |ex(istre|am* new_|
|00001620| 69 6e 2c 20 6f 73 74 72 | 65 61 6d 2a 20 6e 65 77 |in, ostr|eam* new|
|00001630| 5f 6f 75 74 29 20 6d 65 | 74 68 6f 64 0a 09 20 20 |_out) me|thod.. |
|00001640| 6e 6f 77 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 76 |now does| not hav|
|00001650| 65 20 61 20 64 65 66 61 | 75 6c 74 20 66 6f 72 20 |e a defa|ult for |
|00001660| 74 68 65 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |the firs|t argume|
|00001670| 6e 74 2c 20 74 6f 20 64 | 69 73 61 6d 62 69 67 75 |nt, to d|isambigu|
|00001680| 61 74 65 0a 09 20 20 69 | 74 20 66 72 6f 6d 20 46 |ate.. i|t from F|
|00001690| 6c 65 78 4c 65 78 65 72 | 3a 3a 79 79 6c 65 78 28 |lexLexer|::yylex(|
|000016a0| 29 2e 0a 0a 09 2d 20 41 | 20 62 75 67 20 69 6e 20 |)....- A| bug in |
|000016b0| 64 65 73 74 72 75 63 74 | 69 6e 67 20 61 20 46 6c |destruct|ing a Fl|
|000016c0| 65 78 4c 65 78 65 72 20 | 6f 62 6a 65 63 74 20 62 |exLexer |object b|
|000016d0| 65 66 6f 72 65 20 64 6f | 69 6e 67 20 61 6e 79 20 |efore do|ing any |
|000016e0| 73 63 61 6e 6e 69 6e 67 | 0a 09 20 20 77 69 74 68 |scanning|.. with|
|000016f0| 20 69 74 20 68 61 73 20 | 62 65 65 6e 20 66 69 78 | it has |been fix|
|00001700| 65 64 2e 0a 0a 09 2d 20 | 41 20 70 72 6f 62 6c 65 |ed....- |A proble|
|00001710| 6d 20 77 69 74 68 20 69 | 6e 63 6c 75 64 69 6e 67 |m with i|ncluding|
|00001720| 20 46 6c 65 78 4c 65 78 | 65 72 2e 68 20 6d 75 6c | FlexLex|er.h mul|
|00001730| 74 69 70 6c 65 20 74 69 | 6d 65 73 20 68 61 73 20 |tiple ti|mes has |
|00001740| 62 65 65 6e 20 66 69 78 | 65 64 2e 0a 0a 09 2d 20 |been fix|ed....- |
|00001750| 54 68 65 20 61 6c 6c 6f | 63 61 28 29 20 63 68 75 |The allo|ca() chu|
|00001760| 64 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 61 |d necess|ary to a|
|00001770| 63 63 6f 6d 6d 6f 64 61 | 74 65 20 62 69 73 6f 6e |ccommoda|te bison|
|00001780| 20 68 61 73 20 67 72 6f | 77 6e 0a 09 20 20 65 76 | has gro|wn.. ev|
|00001790| 65 6e 20 75 67 6c 69 65 | 72 2c 20 62 75 74 20 68 |en uglie|r, but h|
|000017a0| 6f 70 65 66 75 6c 6c 79 | 20 6d 6f 72 65 20 63 6f |opefully| more co|
|000017b0| 72 72 65 63 74 2e 0a 0a | 09 2d 20 41 20 70 6f 72 |rrect...|.- A por|
|000017c0| 74 61 62 69 6c 69 74 79 | 20 74 77 65 61 6b 20 68 |tability| tweak h|
|000017d0| 61 73 20 62 65 65 6e 20 | 61 64 64 65 64 20 74 6f |as been |added to|
|000017e0| 20 61 63 63 6f 6d 6d 6f | 64 61 74 65 20 63 6f 6d | accommo|date com|
|000017f0| 70 69 6c 65 72 73 20 74 | 68 61 74 0a 09 20 20 75 |pilers t|hat.. u|
|00001800| 73 65 20 63 68 61 72 2a | 20 67 65 6e 65 72 69 63 |se char*| generic|
|00001810| 20 70 6f 69 6e 74 65 72 | 73 2e 0a 0a 09 2d 20 45 | pointer|s....- E|
|00001820| 42 43 44 49 43 20 63 6f | 6e 74 61 63 74 20 69 6e |BCDIC co|ntact in|
|00001830| 66 6f 72 6d 61 74 69 6f | 6e 20 69 6e 20 74 68 65 |formatio|n in the|
|00001840| 20 66 69 6c 65 20 4d 49 | 53 43 2f 45 42 43 44 49 | file MI|SC/EBCDI|
|00001850| 43 20 68 61 73 20 62 65 | 65 6e 20 75 70 64 61 74 |C has be|en updat|
|00001860| 65 64 2e 0a 0a 09 2d 20 | 41 6e 20 4f 53 2f 32 20 |ed....- |An OS/2 |
|00001870| 4d 61 6b 65 66 69 6c 65 | 20 61 6e 64 20 63 6f 6e |Makefile| and con|
|00001880| 66 69 67 2e 68 20 66 6f | 72 20 66 6c 65 78 20 32 |fig.h fo|r flex 2|
|00001890| 2e 35 20 69 73 20 6e 6f | 77 20 61 76 61 69 6c 61 |.5 is no|w availa|
|000018a0| 62 6c 65 20 69 6e 0a 09 | 20 20 4d 49 53 43 2f 4f |ble in..| MISC/O|
|000018b0| 53 32 2f 2c 20 63 6f 6e | 74 72 69 62 75 74 65 64 |S2/, con|tributed|
|000018c0| 20 62 79 20 4b 61 69 20 | 55 77 65 20 52 6f 6d 6d | by Kai |Uwe Romm|
|000018d0| 65 6c 2e 0a 0a 09 2d 20 | 54 68 65 20 64 65 73 63 |el....- |The desc|
|000018e0| 72 69 70 2e 6d 6d 73 20 | 66 69 6c 65 20 66 6f 72 |rip.mms |file for|
|000018f0| 20 62 75 69 6c 64 69 6e | 67 20 66 6c 65 78 20 75 | buildin|g flex u|
|00001900| 6e 64 65 72 20 56 4d 53 | 20 68 61 73 20 62 65 65 |nder VMS| has bee|
|00001910| 6e 20 75 70 64 61 74 65 | 64 2c 0a 09 20 20 74 68 |n update|d,.. th|
|00001920| 61 6e 6b 73 20 74 6f 20 | 50 61 74 20 52 61 6e 6b |anks to |Pat Rank|
|00001930| 69 6e 2e 0a 0a 09 2d 20 | 54 68 65 20 6e 6f 74 65 |in....- |The note|
|00001940| 73 20 6f 6e 20 62 75 69 | 6c 64 69 6e 67 20 66 6c |s on bui|lding fl|
|00001950| 65 78 20 66 6f 72 20 74 | 68 65 20 41 6d 69 67 61 |ex for t|he Amiga|
|00001960| 20 68 61 76 65 20 62 65 | 65 6e 20 75 70 64 61 74 | have be|en updat|
|00001970| 65 64 20 66 6f 72 0a 09 | 20 20 66 6c 65 78 20 32 |ed for..| flex 2|
|00001980| 2e 35 2c 20 63 6f 6e 74 | 72 69 62 75 74 65 64 20 |.5, cont|ributed |
|00001990| 62 79 20 41 6e 64 72 65 | 61 73 20 53 63 68 65 72 |by Andre|as Scher|
|000019a0| 65 72 2e 0a 0a 0a 43 68 | 61 6e 67 65 73 20 62 65 |er....Ch|anges be|
|000019b0| 74 77 65 65 6e 20 72 65 | 6c 65 61 73 65 20 32 2e |tween re|lease 2.|
|000019c0| 35 2e 31 20 28 32 38 4d | 61 72 39 35 29 20 61 6e |5.1 (28M|ar95) an|
|000019d0| 64 20 72 65 6c 65 61 73 | 65 20 32 2e 34 2e 37 3a |d releas|e 2.4.7:|
|000019e0| 0a 0a 09 2d 20 41 20 6e | 65 77 20 63 6f 6e 63 65 |...- A n|ew conce|
|000019f0| 70 74 20 6f 66 20 22 73 | 74 61 72 74 20 63 6f 6e |pt of "s|tart con|
|00001a00| 64 69 74 69 6f 6e 22 20 | 73 63 6f 70 65 20 68 61 |dition" |scope ha|
|00001a10| 73 20 62 65 65 6e 20 69 | 6e 74 72 6f 64 75 63 65 |s been i|ntroduce|
|00001a20| 64 2e 0a 09 20 20 41 20 | 73 74 61 72 74 20 63 6f |d... A |start co|
|00001a30| 6e 64 69 74 69 6f 6e 20 | 73 63 6f 70 65 20 69 73 |ndition |scope is|
|00001a40| 20 62 65 67 75 6e 20 77 | 69 74 68 3a 0a 0a 09 09 | begun w|ith:....|
|00001a50| 3c 53 43 73 3e 7b 0a 0a | 09 20 20 77 68 65 72 65 |<SCs>{..|. where|
|00001a60| 20 53 43 73 20 69 73 20 | 61 20 6c 69 73 74 20 6f | SCs is |a list o|
|00001a70| 66 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 73 74 |f one or| more st|
|00001a80| 61 72 74 20 63 6f 6e 64 | 69 74 69 6f 6e 73 2e 20 |art cond|itions. |
|00001a90| 20 49 6e 73 69 64 65 0a | 09 20 20 74 68 65 20 73 | Inside.|. the s|
|00001aa0| 74 61 72 74 20 63 6f 6e | 64 69 74 69 6f 6e 20 73 |tart con|dition s|
|00001ab0| 63 6f 70 65 2c 20 65 76 | 65 72 79 20 72 75 6c 65 |cope, ev|ery rule|
|00001ac0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 68 | automat|ically h|
|00001ad0| 61 73 20 74 68 65 0a 09 | 20 20 70 72 65 66 69 78 |as the..| prefix|
|00001ae0| 20 3c 53 43 73 3e 20 61 | 70 70 6c 69 65 64 20 74 | <SCs> a|pplied t|
|00001af0| 6f 20 69 74 2c 20 75 6e | 74 69 6c 20 61 20 27 7d |o it, un|til a '}|
|00001b00| 27 20 77 68 69 63 68 20 | 6d 61 74 63 68 65 73 20 |' which |matches |
|00001b10| 74 68 65 0a 09 20 20 69 | 6e 69 74 69 61 6c 20 27 |the.. i|nitial '|
|00001b20| 7b 27 2e 20 20 53 6f 2c | 20 66 6f 72 20 65 78 61 |{'. So,| for exa|
|00001b30| 6d 70 6c 65 3a 0a 0a 09 | 09 3c 45 53 43 3e 7b 0a |mple:...|.<ESC>{.|
|00001b40| 09 09 09 22 5c 5c 6e 22 | 09 72 65 74 75 72 6e 20 |..."\\n"|.return |
|00001b50| 27 5c 6e 27 3b 0a 09 09 | 09 22 5c 5c 72 22 09 72 |'\n';...|."\\r".r|
|00001b60| 65 74 75 72 6e 20 27 5c | 72 27 3b 0a 09 09 09 22 |eturn '\|r';...."|
|00001b70| 5c 5c 66 22 09 72 65 74 | 75 72 6e 20 27 5c 66 27 |\\f".ret|urn '\f'|
|00001b80| 3b 0a 09 09 09 22 5c 5c | 30 22 09 72 65 74 75 72 |;...."\\|0".retur|
|00001b90| 6e 20 27 5c 30 27 3b 0a | 09 09 7d 0a 0a 09 20 20 |n '\0';.|..}... |
|00001ba0| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 6f |is equiv|alent to|
|00001bb0| 3a 0a 0a 09 09 3c 45 53 | 43 3e 22 5c 5c 6e 22 09 |:....<ES|C>"\\n".|
|00001bc0| 72 65 74 75 72 6e 20 27 | 5c 6e 27 3b 0a 09 09 3c |return '|\n';...<|
|00001bd0| 45 53 43 3e 22 5c 5c 72 | 22 09 72 65 74 75 72 6e |ESC>"\\r|".return|
|00001be0| 20 27 5c 72 27 3b 0a 09 | 09 3c 45 53 43 3e 22 5c | '\r';..|.<ESC>"\|
|00001bf0| 5c 66 22 09 72 65 74 75 | 72 6e 20 27 5c 66 27 3b |\f".retu|rn '\f';|
|00001c00| 0a 09 09 3c 45 53 43 3e | 22 5c 5c 30 22 09 72 65 |...<ESC>|"\\0".re|
|00001c10| 74 75 72 6e 20 27 5c 30 | 27 3b 0a 0a 09 20 20 41 |turn '\0|';... A|
|00001c20| 73 20 69 6e 64 69 63 61 | 74 65 64 20 69 6e 20 74 |s indica|ted in t|
|00001c30| 68 69 73 20 65 78 61 6d | 70 6c 65 2c 20 72 75 6c |his exam|ple, rul|
|00001c40| 65 73 20 69 6e 73 69 64 | 65 20 73 74 61 72 74 20 |es insid|e start |
|00001c50| 63 6f 6e 64 69 74 69 6f | 6e 20 73 63 6f 70 65 73 |conditio|n scopes|
|00001c60| 0a 09 20 20 28 61 6e 64 | 20 61 6e 79 20 72 75 6c |.. (and| any rul|
|00001c70| 65 2c 20 61 63 74 75 61 | 6c 6c 79 2c 20 6f 74 68 |e, actua|lly, oth|
|00001c80| 65 72 20 74 68 61 6e 20 | 74 68 65 20 66 69 72 73 |er than |the firs|
|00001c90| 74 29 20 63 61 6e 20 62 | 65 20 69 6e 64 65 6e 74 |t) can b|e indent|
|00001ca0| 65 64 2c 0a 09 20 20 74 | 6f 20 62 65 74 74 65 72 |ed,.. t|o better|
|00001cb0| 20 73 68 6f 77 20 74 68 | 65 20 65 78 74 65 6e 74 | show th|e extent|
|00001cc0| 20 6f 66 20 74 68 65 20 | 73 63 6f 70 65 2e 0a 0a | of the |scope...|
|00001cd0| 09 20 20 53 74 61 72 74 | 20 63 6f 6e 64 69 74 69 |. Start| conditi|
|00001ce0| 6f 6e 20 73 63 6f 70 65 | 73 20 6d 61 79 20 62 65 |on scope|s may be|
|00001cf0| 20 6e 65 73 74 65 64 2e | 0a 0a 09 2d 20 54 68 65 | nested.|...- The|
|00001d00| 20 6e 65 77 20 25 6f 70 | 74 69 6f 6e 20 64 69 72 | new %op|tion dir|
|00001d10| 65 63 74 69 76 65 20 63 | 61 6e 20 62 65 20 75 73 |ective c|an be us|
|00001d20| 65 64 20 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |ed in th|e first |
|00001d30| 73 65 63 74 69 6f 6e 20 | 6f 66 0a 09 20 20 61 20 |section |of.. a |
|00001d40| 66 6c 65 78 20 73 63 61 | 6e 6e 65 72 20 74 6f 20 |flex sca|nner to |
|00001d50| 63 6f 6e 74 72 6f 6c 20 | 73 63 61 6e 6e 65 72 2d |control |scanner-|
|00001d60| 67 65 6e 65 72 61 74 69 | 6f 6e 20 6f 70 74 69 6f |generati|on optio|
|00001d70| 6e 73 2e 20 20 4d 6f 73 | 74 0a 09 20 20 6f 70 74 |ns. Mos|t.. opt|
|00001d80| 69 6f 6e 73 20 61 72 65 | 20 67 69 76 65 6e 20 73 |ions are| given s|
|00001d90| 69 6d 70 6c 79 20 61 73 | 20 6e 61 6d 65 73 2c 20 |imply as| names, |
|00001da0| 6f 70 74 69 6f 6e 61 6c | 6c 79 20 70 72 65 63 65 |optional|ly prece|
|00001db0| 64 65 64 20 62 79 20 74 | 68 65 0a 09 20 20 77 6f |ded by t|he.. wo|
|00001dc0| 72 64 20 22 6e 6f 22 20 | 28 77 69 74 68 20 6e 6f |rd "no" |(with no|
|00001dd0| 20 69 6e 74 65 72 76 65 | 6e 69 6e 67 20 77 68 69 | interve|ning whi|
|00001de0| 74 65 73 70 61 63 65 29 | 20 74 6f 20 6e 65 67 61 |tespace)| to nega|
|00001df0| 74 65 20 74 68 65 69 72 | 0a 09 20 20 6d 65 61 6e |te their|.. mean|
|00001e00| 69 6e 67 2e 20 20 53 6f | 6d 65 20 61 72 65 20 65 |ing. So|me are e|
|00001e10| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 66 6c 65 |quivalen|t to fle|
|00001e20| 78 20 66 6c 61 67 73 2c | 20 73 6f 20 70 75 74 74 |x flags,| so putt|
|00001e30| 69 6e 67 20 74 68 65 6d | 0a 09 20 20 69 6e 20 79 |ing them|.. in y|
|00001e40| 6f 75 72 20 73 63 61 6e | 6e 65 72 20 73 6f 75 72 |our scan|ner sour|
|00001e50| 63 65 20 69 73 20 65 71 | 75 69 76 61 6c 65 6e 74 |ce is eq|uivalent|
|00001e60| 20 74 6f 20 61 6c 77 61 | 79 73 20 73 70 65 63 69 | to alwa|ys speci|
|00001e70| 66 79 69 6e 67 0a 09 20 | 20 74 68 65 20 66 6c 61 |fying.. | the fla|
|00001e80| 67 20 28 25 6f 70 74 69 | 6f 6e 27 73 20 74 61 6b |g (%opti|on's tak|
|00001e90| 65 20 70 72 65 63 65 64 | 65 6e 63 65 20 6f 76 65 |e preced|ence ove|
|00001ea0| 72 20 66 6c 61 67 73 29 | 3a 0a 0a 09 09 37 62 69 |r flags)|:....7bi|
|00001eb0| 74 09 2d 37 20 6f 70 74 | 69 6f 6e 0a 09 09 38 62 |t.-7 opt|ion...8b|
|00001ec0| 69 74 09 2d 38 20 6f 70 | 74 69 6f 6e 0a 09 09 61 |it.-8 op|tion...a|
|00001ed0| 6c 69 67 6e 09 2d 43 61 | 20 6f 70 74 69 6f 6e 0a |lign.-Ca| option.|
|00001ee0| 09 09 62 61 63 6b 75 70 | 09 2d 62 20 6f 70 74 69 |..backup|.-b opti|
|00001ef0| 6f 6e 0a 09 09 62 61 74 | 63 68 09 2d 42 20 6f 70 |on...bat|ch.-B op|
|00001f00| 74 69 6f 6e 0a 09 09 63 | 2b 2b 09 2d 2b 20 6f 70 |tion...c|++.-+ op|
|00001f10| 74 69 6f 6e 0a 09 09 63 | 61 73 65 66 75 6c 09 6f |tion...c|aseful.o|
|00001f20| 70 70 6f 73 69 74 65 20 | 6f 66 20 2d 69 20 6f 70 |pposite |of -i op|
|00001f30| 74 69 6f 6e 20 28 63 61 | 73 65 66 75 6c 20 69 73 |tion (ca|seful is|
|00001f40| 20 74 68 65 20 64 65 66 | 61 75 6c 74 29 3b 0a 09 | the def|ault);..|
|00001f50| 09 63 61 73 65 2d 73 65 | 6e 73 69 74 69 76 65 09 |.case-se|nsitive.|
|00001f60| 73 61 6d 65 20 61 73 20 | 61 62 6f 76 65 0a 09 09 |same as |above...|
|00001f70| 63 61 73 65 6c 65 73 73 | 09 2d 69 20 6f 70 74 69 |caseless|.-i opti|
|00001f80| 6f 6e 3b 0a 09 09 63 61 | 73 65 2d 69 6e 73 65 6e |on;...ca|se-insen|
|00001f90| 73 69 74 69 76 65 09 73 | 61 6d 65 20 61 73 20 61 |sitive.s|ame as a|
|00001fa0| 62 6f 76 65 0a 09 09 64 | 65 62 75 67 09 2d 64 20 |bove...d|ebug.-d |
|00001fb0| 6f 70 74 69 6f 6e 0a 09 | 09 64 65 66 61 75 6c 74 |option..|.default|
|00001fc0| 09 6f 70 70 6f 73 69 74 | 65 20 6f 66 20 2d 73 20 |.opposit|e of -s |
|00001fd0| 6f 70 74 69 6f 6e 0a 09 | 09 65 63 73 09 2d 43 65 |option..|.ecs.-Ce|
|00001fe0| 20 6f 70 74 69 6f 6e 0a | 09 09 66 61 73 74 09 2d | option.|..fast.-|
|00001ff0| 46 20 6f 70 74 69 6f 6e | 0a 09 09 66 75 6c 6c 09 |F option|...full.|
|00002000| 2d 66 20 6f 70 74 69 6f | 6e 0a 09 09 69 6e 74 65 |-f optio|n...inte|
|00002010| 72 61 63 74 69 76 65 09 | 2d 49 20 6f 70 74 69 6f |ractive.|-I optio|
|00002020| 6e 0a 09 09 6c 65 78 2d | 63 6f 6d 70 61 74 09 2d |n...lex-|compat.-|
|00002030| 6c 20 6f 70 74 69 6f 6e | 0a 09 09 6d 65 74 61 2d |l option|...meta-|
|00002040| 65 63 73 09 2d 43 6d 20 | 6f 70 74 69 6f 6e 0a 09 |ecs.-Cm |option..|
|00002050| 09 70 65 72 66 2d 72 65 | 70 6f 72 74 09 2d 70 20 |.perf-re|port.-p |
|00002060| 6f 70 74 69 6f 6e 0a 09 | 09 72 65 61 64 09 2d 43 |option..|.read.-C|
|00002070| 72 20 6f 70 74 69 6f 6e | 0a 09 09 73 74 64 6f 75 |r option|...stdou|
|00002080| 74 09 2d 74 20 6f 70 74 | 69 6f 6e 0a 09 09 76 65 |t.-t opt|ion...ve|
|00002090| 72 62 6f 73 65 09 2d 76 | 20 6f 70 74 69 6f 6e 0a |rbose.-v| option.|
|000020a0| 09 09 77 61 72 6e 09 6f | 70 70 6f 73 69 74 65 20 |..warn.o|pposite |
|000020b0| 6f 66 20 2d 77 20 6f 70 | 74 69 6f 6e 20 28 73 6f |of -w op|tion (so|
|000020c0| 20 75 73 65 20 22 25 6f | 70 74 69 6f 6e 20 6e 6f | use "%o|ption no|
|000020d0| 77 61 72 6e 22 20 66 6f | 72 20 2d 77 29 0a 0a 09 |warn" fo|r -w)...|
|000020e0| 09 61 72 72 61 79 09 65 | 71 75 69 76 61 6c 65 6e |.array.e|quivalen|
|000020f0| 74 20 74 6f 20 22 25 61 | 72 72 61 79 22 0a 09 09 |t to "%a|rray"...|
|00002100| 70 6f 69 6e 74 65 72 09 | 65 71 75 69 76 61 6c 65 |pointer.|equivale|
|00002110| 6e 74 20 74 6f 20 22 25 | 70 6f 69 6e 74 65 72 22 |nt to "%|pointer"|
|00002120| 20 28 64 65 66 61 75 6c | 74 29 0a 0a 09 20 20 53 | (defaul|t)... S|
|00002130| 6f 6d 65 20 70 72 6f 76 | 69 64 65 20 6e 65 77 20 |ome prov|ide new |
|00002140| 66 65 61 74 75 72 65 73 | 3a 0a 0a 09 09 61 6c 77 |features|:....alw|
|00002150| 61 79 73 2d 69 6e 74 65 | 72 61 63 74 69 76 65 09 |ays-inte|ractive.|
|00002160| 67 65 6e 65 72 61 74 65 | 20 61 20 73 63 61 6e 6e |generate| a scann|
|00002170| 65 72 20 77 68 69 63 68 | 20 61 6c 77 61 79 73 0a |er which| always.|
|00002180| 09 09 09 63 6f 6e 73 69 | 64 65 72 73 20 69 74 73 |...consi|ders its|
|00002190| 20 69 6e 70 75 74 20 22 | 69 6e 74 65 72 61 63 74 | input "|interact|
|000021a0| 69 76 65 22 20 28 6e 6f | 20 63 61 6c 6c 20 74 6f |ive" (no| call to|
|000021b0| 20 69 73 61 74 74 79 28 | 29 0a 09 09 09 77 69 6c | isatty(|)....wil|
|000021c0| 6c 20 62 65 20 6d 61 64 | 65 20 77 68 65 6e 20 74 |l be mad|e when t|
|000021d0| 68 65 20 73 63 61 6e 6e | 65 72 20 72 75 6e 73 29 |he scann|er runs)|
|000021e0| 0a 09 09 6d 61 69 6e 09 | 73 75 70 70 6c 79 20 61 |...main.|supply a|
|000021f0| 20 6d 61 69 6e 20 70 72 | 6f 67 72 61 6d 20 66 6f | main pr|ogram fo|
|00002200| 72 20 74 68 65 20 73 63 | 61 6e 6e 65 72 2c 20 77 |r the sc|anner, w|
|00002210| 68 69 63 68 0a 09 09 09 | 73 69 6d 70 6c 79 20 63 |hich....|simply c|
|00002220| 61 6c 6c 73 20 79 79 6c | 65 78 28 29 2e 20 20 49 |alls yyl|ex(). I|
|00002230| 6d 70 6c 69 65 73 20 25 | 6f 70 74 69 6f 6e 20 6e |mplies %|option n|
|00002240| 6f 79 79 77 72 61 70 2e | 0a 09 09 6e 65 76 65 72 |oyywrap.|...never|
|00002250| 2d 69 6e 74 65 72 61 63 | 74 69 76 65 09 67 65 6e |-interac|tive.gen|
|00002260| 65 72 61 74 65 20 61 20 | 73 63 61 6e 6e 65 72 20 |erate a |scanner |
|00002270| 77 68 69 63 68 20 6e 65 | 76 65 72 0a 09 09 09 63 |which ne|ver....c|
|00002280| 6f 6e 73 69 64 65 72 73 | 20 69 74 73 20 69 6e 70 |onsiders| its inp|
|00002290| 75 74 20 22 69 6e 74 65 | 72 61 63 74 69 76 65 22 |ut "inte|ractive"|
|000022a0| 20 28 6e 6f 20 63 61 6c | 6c 20 74 6f 20 69 73 61 | (no cal|l to isa|
|000022b0| 74 74 79 28 29 0a 09 09 | 09 77 69 6c 6c 20 62 65 |tty()...|.will be|
|000022c0| 20 6d 61 64 65 20 77 68 | 65 6e 20 74 68 65 20 73 | made wh|en the s|
|000022d0| 63 61 6e 6e 65 72 20 72 | 75 6e 73 29 0a 09 09 73 |canner r|uns)...s|
|000022e0| 74 61 63 6b 09 69 66 20 | 73 65 74 2c 20 65 6e 61 |tack.if |set, ena|
|000022f0| 62 6c 65 20 73 74 61 72 | 74 20 63 6f 6e 64 69 74 |ble star|t condit|
|00002300| 69 6f 6e 20 73 74 61 63 | 6b 73 20 28 73 65 65 20 |ion stac|ks (see |
|00002310| 62 65 6c 6f 77 29 0a 09 | 09 73 74 64 69 6e 69 74 |below)..|.stdinit|
|00002320| 09 69 66 20 75 6e 73 65 | 74 20 28 22 25 6f 70 74 |.if unse|t ("%opt|
|00002330| 69 6f 6e 20 6e 6f 73 74 | 64 69 6e 69 74 22 29 2c |ion nost|dinit"),|
|00002340| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 79 79 69 6e | initial|ize yyin|
|00002350| 0a 09 09 09 61 6e 64 20 | 79 79 6f 75 74 20 73 74 |....and |yyout st|
|00002360| 61 74 69 63 61 6c 6c 79 | 20 74 6f 20 6e 69 6c 20 |atically| to nil |
|00002370| 46 49 4c 45 2a 20 70 6f | 69 6e 74 65 72 73 2c 20 |FILE* po|inters, |
|00002380| 69 6e 73 74 65 61 64 0a | 09 09 09 6f 66 20 73 74 |instead.|...of st|
|00002390| 64 69 6e 20 61 6e 64 20 | 73 74 64 6f 75 74 0a 09 |din and |stdout..|
|000023a0| 09 79 79 6c 69 6e 65 6e | 6f 09 69 66 20 73 65 74 |.yylinen|o.if set|
|000023b0| 2c 20 6b 65 65 70 20 74 | 72 61 63 6b 20 6f 66 20 |, keep t|rack of |
|000023c0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|000023d0| 0a 09 09 09 6e 75 6d 62 | 65 72 20 69 6e 20 67 6c |....numb|er in gl|
|000023e0| 6f 62 61 6c 20 79 79 6c | 69 6e 65 6e 6f 20 28 74 |obal yyl|ineno (t|
|000023f0| 68 69 73 20 6f 70 74 69 | 6f 6e 20 69 73 20 65 78 |his opti|on is ex|
|00002400| 70 65 6e 73 69 76 65 0a | 09 09 09 69 6e 20 74 65 |pensive.|...in te|
|00002410| 72 6d 73 20 6f 66 20 70 | 65 72 66 6f 72 6d 61 6e |rms of p|erforman|
|00002420| 63 65 29 2e 20 20 54 68 | 65 20 6c 69 6e 65 20 6e |ce). Th|e line n|
|00002430| 75 6d 62 65 72 20 69 73 | 20 61 76 61 69 6c 61 62 |umber is| availab|
|00002440| 6c 65 0a 09 09 09 74 6f | 20 43 2b 2b 20 73 63 61 |le....to| C++ sca|
|00002450| 6e 6e 69 6e 67 20 6f 62 | 6a 65 63 74 73 20 76 69 |nning ob|jects vi|
|00002460| 61 20 74 68 65 20 6e 65 | 77 20 6d 65 6d 62 65 72 |a the ne|w member|
|00002470| 20 66 75 6e 63 74 69 6f | 6e 0a 09 09 09 6c 69 6e | functio|n....lin|
|00002480| 65 6e 6f 28 29 2e 0a 09 | 09 79 79 77 72 61 70 09 |eno()...|.yywrap.|
|00002490| 69 66 20 75 6e 73 65 74 | 20 28 22 25 6f 70 74 69 |if unset| ("%opti|
|000024a0| 6f 6e 20 6e 6f 79 79 77 | 72 61 70 22 29 2c 20 73 |on noyyw|rap"), s|
|000024b0| 63 61 6e 6e 65 72 20 64 | 6f 65 73 20 6e 6f 74 0a |canner d|oes not.|
|000024c0| 09 09 09 63 61 6c 6c 20 | 79 79 77 72 61 70 28 29 |...call |yywrap()|
|000024d0| 20 75 70 6f 6e 20 45 4f | 46 20 62 75 74 20 73 69 | upon EO|F but si|
|000024e0| 6d 70 6c 79 20 61 73 73 | 75 6d 65 73 20 74 68 65 |mply ass|umes the|
|000024f0| 72 65 0a 09 09 09 61 72 | 65 20 6e 6f 20 6d 6f 72 |re....ar|e no mor|
|00002500| 65 20 66 69 6c 65 73 20 | 74 6f 20 73 63 61 6e 0a |e files |to scan.|
|00002510| 0a 09 20 20 46 6c 65 78 | 20 73 63 61 6e 73 20 79 |.. Flex| scans y|
|00002520| 6f 75 72 20 72 75 6c 65 | 20 61 63 74 69 6f 6e 73 |our rule| actions|
|00002530| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 77 68 | to dete|rmine wh|
|00002540| 65 74 68 65 72 20 79 6f | 75 20 75 73 65 20 74 68 |ether yo|u use th|
|00002550| 65 0a 09 20 20 52 45 4a | 45 43 54 20 6f 72 20 79 |e.. REJ|ECT or y|
|00002560| 79 6d 6f 72 65 20 66 65 | 61 74 75 72 65 73 20 28 |ymore fe|atures (|
|00002570| 74 68 69 73 20 69 73 20 | 6e 6f 74 20 6e 65 77 29 |this is |not new)|
|00002580| 2e 20 20 54 77 6f 20 25 | 6f 70 74 69 6f 6e 73 20 |. Two %|options |
|00002590| 63 61 6e 20 62 65 0a 09 | 20 20 75 73 65 64 20 74 |can be..| used t|
|000025a0| 6f 20 6f 76 65 72 72 69 | 64 65 20 69 74 73 20 64 |o overri|de its d|
|000025b0| 65 63 69 73 69 6f 6e 2c | 20 65 69 74 68 65 72 20 |ecision,| either |
|000025c0| 62 79 20 73 65 74 74 69 | 6e 67 20 74 68 65 6d 20 |by setti|ng them |
|000025d0| 74 6f 20 69 6e 64 69 63 | 61 74 65 0a 09 20 20 74 |to indic|ate.. t|
|000025e0| 68 65 20 66 65 61 74 75 | 72 65 20 69 73 20 69 6e |he featu|re is in|
|000025f0| 64 65 65 64 20 75 73 65 | 64 2c 20 6f 72 20 75 6e |deed use|d, or un|
|00002600| 73 65 74 74 69 6e 67 20 | 74 68 65 6d 20 74 6f 20 |setting |them to |
|00002610| 69 6e 64 69 63 61 74 65 | 20 69 74 0a 09 20 20 61 |indicate| it.. a|
|00002620| 63 74 75 61 6c 6c 79 20 | 69 73 20 6e 6f 74 20 75 |ctually |is not u|
|00002630| 73 65 64 3a 0a 0a 09 09 | 72 65 6a 65 63 74 0a 09 |sed:....|reject..|
|00002640| 09 79 79 6d 6f 72 65 0a | 0a 09 20 20 54 68 72 65 |.yymore.|.. Thre|
|00002650| 65 20 25 6f 70 74 69 6f | 6e 27 73 20 74 61 6b 65 |e %optio|n's take|
|00002660| 20 73 74 72 69 6e 67 2d | 64 65 6c 69 6d 69 74 65 | string-|delimite|
|00002670| 64 20 76 61 6c 75 65 73 | 2c 20 6f 66 66 73 65 74 |d values|, offset|
|00002680| 20 77 69 74 68 20 27 3d | 27 3a 0a 0a 09 09 6f 75 | with '=|':....ou|
|00002690| 74 66 69 6c 65 3d 22 3c | 6e 61 6d 65 3e 22 09 65 |tfile="<|name>".e|
|000026a0| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 2d 6f 3c |quivalen|t to -o<|
|000026b0| 6e 61 6d 65 3e 0a 09 09 | 70 72 65 66 69 78 3d 22 |name>...|prefix="|
|000026c0| 3c 6e 61 6d 65 3e 22 09 | 09 65 71 75 69 76 61 6c |<name>".|.equival|
|000026d0| 65 6e 74 20 74 6f 20 2d | 50 3c 6e 61 6d 65 3e 0a |ent to -|P<name>.|
|000026e0| 09 09 79 79 63 6c 61 73 | 73 3d 22 3c 6e 61 6d 65 |..yyclas|s="<name|
|000026f0| 3e 22 09 73 65 74 20 74 | 68 65 20 6e 61 6d 65 20 |>".set t|he name |
|00002700| 6f 66 20 74 68 65 20 43 | 2b 2b 20 73 63 61 6e 6e |of the C|++ scann|
|00002710| 69 6e 67 20 63 6c 61 73 | 73 0a 09 09 09 09 09 28 |ing clas|s......(|
|00002720| 73 65 65 20 62 65 6c 6f | 77 29 0a 0a 09 20 20 41 |see belo|w)... A|
|00002730| 20 6e 75 6d 62 65 72 20 | 6f 66 20 25 6f 70 74 69 | number |of %opti|
|00002740| 6f 6e 27 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |on's are| availab|
|00002750| 6c 65 20 66 6f 72 20 6c | 69 6e 74 20 70 75 72 69 |le for l|int puri|
|00002760| 73 74 73 20 77 68 6f 0a | 09 20 20 77 61 6e 74 20 |sts who.|. want |
|00002770| 74 6f 20 73 75 70 70 72 | 65 73 73 20 74 68 65 20 |to suppr|ess the |
|00002780| 61 70 70 65 61 72 61 6e | 63 65 20 6f 66 20 75 6e |appearan|ce of un|
|00002790| 6e 65 65 64 65 64 20 72 | 6f 75 74 69 6e 65 73 20 |needed r|outines |
|000027a0| 69 6e 0a 09 20 20 74 68 | 65 20 67 65 6e 65 72 61 |in.. th|e genera|
|000027b0| 74 65 64 20 73 63 61 6e | 6e 65 72 2e 20 20 45 61 |ted scan|ner. Ea|
|000027c0| 63 68 20 6f 66 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ch of th|e follow|
|000027d0| 69 6e 67 2c 20 69 66 20 | 75 6e 73 65 74 2c 0a 09 |ing, if |unset,..|
|000027e0| 20 20 72 65 73 75 6c 74 | 73 20 69 6e 20 74 68 65 | result|s in the|
|000027f0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 72 | corresp|onding r|
|00002800| 6f 75 74 69 6e 65 20 6e | 6f 74 20 61 70 70 65 61 |outine n|ot appea|
|00002810| 72 69 6e 67 20 69 6e 20 | 74 68 65 0a 09 20 20 67 |ring in |the.. g|
|00002820| 65 6e 65 72 61 74 65 64 | 20 73 63 61 6e 6e 65 72 |enerated| scanner|
|00002830| 3a 0a 0a 09 09 69 6e 70 | 75 74 2c 20 75 6e 70 75 |:....inp|ut, unpu|
|00002840| 74 0a 09 09 79 79 5f 70 | 75 73 68 5f 73 74 61 74 |t...yy_p|ush_stat|
|00002850| 65 2c 20 79 79 5f 70 6f | 70 5f 73 74 61 74 65 2c |e, yy_po|p_state,|
|00002860| 20 79 79 5f 74 6f 70 5f | 73 74 61 74 65 0a 09 09 | yy_top_|state...|
|00002870| 79 79 5f 73 63 61 6e 5f | 62 75 66 66 65 72 2c 20 |yy_scan_|buffer, |
|00002880| 79 79 5f 73 63 61 6e 5f | 62 79 74 65 73 2c 20 79 |yy_scan_|bytes, y|
|00002890| 79 5f 73 63 61 6e 5f 73 | 74 72 69 6e 67 0a 0a 09 |y_scan_s|tring...|
|000028a0| 20 20 59 6f 75 20 63 61 | 6e 20 73 70 65 63 69 66 | You ca|n specif|
|000028b0| 79 20 6d 75 6c 74 69 70 | 6c 65 20 6f 70 74 69 6f |y multip|le optio|
|000028c0| 6e 73 20 77 69 74 68 20 | 61 20 73 69 6e 67 6c 65 |ns with |a single|
|000028d0| 20 25 6f 70 74 69 6f 6e | 20 64 69 72 65 63 74 69 | %option| directi|
|000028e0| 76 65 2c 0a 09 20 20 61 | 6e 64 20 6d 75 6c 74 69 |ve,.. a|nd multi|
|000028f0| 70 6c 65 20 64 69 72 65 | 63 74 69 76 65 73 20 69 |ple dire|ctives i|
|00002900| 6e 20 74 68 65 20 66 69 | 72 73 74 20 73 65 63 74 |n the fi|rst sect|
|00002910| 69 6f 6e 20 6f 66 20 79 | 6f 75 72 20 66 6c 65 78 |ion of y|our flex|
|00002920| 20 69 6e 70 75 74 20 66 | 69 6c 65 2e 0a 0a 09 2d | input f|ile....-|
|00002930| 20 54 68 65 20 6e 65 77 | 20 66 75 6e 63 74 69 6f | The new| functio|
|00002940| 6e 3a 0a 0a 09 09 59 59 | 5f 42 55 46 46 45 52 5f |n:....YY|_BUFFER_|
|00002950| 53 54 41 54 45 20 79 79 | 5f 73 63 61 6e 5f 73 74 |STATE yy|_scan_st|
|00002960| 72 69 6e 67 28 20 63 6f | 6e 73 74 20 63 68 61 72 |ring( co|nst char|
|00002970| 20 2a 73 74 72 20 29 0a | 0a 09 20 20 72 65 74 75 | *str ).|.. retu|
|00002980| 72 6e 73 20 61 20 59 59 | 5f 42 55 46 46 45 52 5f |rns a YY|_BUFFER_|
|00002990| 53 54 41 54 45 20 28 77 | 68 69 63 68 20 61 6c 73 |STATE (w|hich als|
|000029a0| 6f 20 62 65 63 6f 6d 65 | 73 20 74 68 65 20 63 75 |o become|s the cu|
|000029b0| 72 72 65 6e 74 20 69 6e | 70 75 74 0a 09 20 20 62 |rrent in|put.. b|
|000029c0| 75 66 66 65 72 29 20 66 | 6f 72 20 73 63 61 6e 6e |uffer) f|or scann|
|000029d0| 69 6e 67 20 74 68 65 20 | 67 69 76 65 6e 20 73 74 |ing the |given st|
|000029e0| 72 69 6e 67 2c 20 77 68 | 69 63 68 20 6f 63 63 75 |ring, wh|ich occu|
|000029f0| 72 73 20 73 74 61 72 74 | 69 6e 67 0a 09 20 20 77 |rs start|ing.. w|
|00002a00| 69 74 68 20 74 68 65 20 | 6e 65 78 74 20 63 61 6c |ith the |next cal|
|00002a10| 6c 20 74 6f 20 79 79 6c | 65 78 28 29 2e 20 20 54 |l to yyl|ex(). T|
|00002a20| 68 65 20 73 74 72 69 6e | 67 20 6d 75 73 74 20 62 |he strin|g must b|
|00002a30| 65 20 4e 55 4c 2d 74 65 | 72 6d 69 6e 61 74 65 64 |e NUL-te|rminated|
|00002a40| 2e 0a 09 20 20 41 20 72 | 65 6c 61 74 65 64 20 66 |... A r|elated f|
|00002a50| 75 6e 63 74 69 6f 6e 3a | 0a 0a 09 09 59 59 5f 42 |unction:|....YY_B|
|00002a60| 55 46 46 45 52 5f 53 54 | 41 54 45 20 79 79 5f 73 |UFFER_ST|ATE yy_s|
|00002a70| 63 61 6e 5f 62 79 74 65 | 73 28 20 63 6f 6e 73 74 |can_byte|s( const|
|00002a80| 20 63 68 61 72 20 2a 62 | 79 74 65 73 2c 20 69 6e | char *b|ytes, in|
|00002a90| 74 20 6c 65 6e 20 29 0a | 0a 09 20 20 63 72 65 61 |t len ).|.. crea|
|00002aa0| 74 65 73 20 61 20 62 75 | 66 66 65 72 20 66 6f 72 |tes a bu|ffer for|
|00002ab0| 20 73 63 61 6e 6e 69 6e | 67 20 22 6c 65 6e 22 20 | scannin|g "len" |
|00002ac0| 62 79 74 65 73 20 28 69 | 6e 63 6c 75 64 69 6e 67 |bytes (i|ncluding|
|00002ad0| 20 70 6f 73 73 69 62 6c | 79 20 4e 55 4c 27 73 29 | possibl|y NUL's)|
|00002ae0| 0a 09 20 20 73 74 61 72 | 74 69 6e 67 20 61 74 20 |.. star|ting at |
|00002af0| 6c 6f 63 61 74 69 6f 6e | 20 22 62 79 74 65 73 22 |location| "bytes"|
|00002b00| 2e 0a 0a 09 20 20 4e 6f | 74 65 20 74 68 61 74 20 |.... No|te that |
|00002b10| 62 6f 74 68 20 6f 66 20 | 74 68 65 73 65 20 66 75 |both of |these fu|
|00002b20| 6e 63 74 69 6f 6e 73 20 | 63 72 65 61 74 65 20 61 |nctions |create a|
|00002b30| 6e 64 20 73 63 61 6e 20 | 61 20 2a 63 6f 70 79 2a |nd scan |a *copy*|
|00002b40| 20 6f 66 0a 09 20 20 74 | 68 65 20 73 74 72 69 6e | of.. t|he strin|
|00002b50| 67 2f 62 79 74 65 73 2e | 20 20 28 54 68 69 73 20 |g/bytes.| (This |
|00002b60| 6d 61 79 20 62 65 20 64 | 65 73 69 72 61 62 6c 65 |may be d|esirable|
|00002b70| 2c 20 73 69 6e 63 65 20 | 79 79 6c 65 78 28 29 20 |, since |yylex() |
|00002b80| 6d 6f 64 69 66 69 65 73 | 0a 09 20 20 74 68 65 20 |modifies|.. the |
|00002b90| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|00002ba0| 62 75 66 66 65 72 20 69 | 74 20 69 73 20 73 63 61 |buffer i|t is sca|
|00002bb0| 6e 6e 69 6e 67 2e 29 20 | 20 59 6f 75 20 63 61 6e |nning.) | You can|
|00002bc0| 20 61 76 6f 69 64 20 74 | 68 65 0a 09 20 20 63 6f | avoid t|he.. co|
|00002bd0| 70 79 20 62 79 20 75 73 | 69 6e 67 3a 0a 0a 09 09 |py by us|ing:....|
|00002be0| 59 59 5f 42 55 46 46 45 | 52 5f 53 54 41 54 45 20 |YY_BUFFE|R_STATE |
|00002bf0| 79 79 5f 73 63 61 6e 5f | 62 75 66 66 65 72 28 20 |yy_scan_|buffer( |
|00002c00| 63 68 61 72 20 2a 62 61 | 73 65 2c 20 79 79 5f 73 |char *ba|se, yy_s|
|00002c10| 69 7a 65 5f 74 20 73 69 | 7a 65 20 29 0a 0a 09 20 |ize_t si|ze )... |
|00002c20| 20 77 68 69 63 68 20 73 | 63 61 6e 73 20 69 6e 20 | which s|cans in |
|00002c30| 70 6c 61 63 65 20 74 68 | 65 20 62 75 66 66 65 72 |place th|e buffer|
|00002c40| 20 73 74 61 72 74 69 6e | 67 20 61 74 20 22 62 61 | startin|g at "ba|
|00002c50| 73 65 22 2c 20 63 6f 6e | 73 69 73 74 69 6e 67 0a |se", con|sisting.|
|00002c60| 09 20 20 6f 66 20 22 73 | 69 7a 65 22 20 62 79 74 |. of "s|ize" byt|
|00002c70| 65 73 2c 20 74 68 65 20 | 6c 61 73 74 20 74 77 6f |es, the |last two|
|00002c80| 20 62 79 74 65 73 20 6f | 66 20 77 68 69 63 68 20 | bytes o|f which |
|00002c90| 2a 6d 75 73 74 2a 20 62 | 65 0a 09 20 20 59 59 5f |*must* b|e.. YY_|
|00002ca0| 45 4e 44 5f 4f 46 5f 42 | 55 46 46 45 52 5f 43 48 |END_OF_B|UFFER_CH|
|00002cb0| 41 52 20 28 74 68 65 73 | 65 20 62 79 74 65 73 20 |AR (thes|e bytes |
|00002cc0| 61 72 65 20 6e 6f 74 20 | 73 63 61 6e 6e 65 64 3b |are not |scanned;|
|00002cd0| 20 74 68 75 73 2c 20 73 | 63 61 6e 6e 69 6e 67 0a | thus, s|canning.|
|00002ce0| 09 20 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 62 |. consi|sts of b|
|00002cf0| 61 73 65 5b 30 5d 20 74 | 68 72 6f 75 67 68 20 62 |ase[0] t|hrough b|
|00002d00| 61 73 65 5b 73 69 7a 65 | 2d 32 5d 2c 20 69 6e 63 |ase[size|-2], inc|
|00002d10| 6c 75 73 69 76 65 29 2e | 20 20 49 66 20 79 6f 75 |lusive).| If you|
|00002d20| 0a 09 20 20 66 61 69 6c | 20 74 6f 20 73 65 74 20 |.. fail| to set |
|00002d30| 75 70 20 22 62 61 73 65 | 22 20 69 6e 20 74 68 69 |up "base|" in thi|
|00002d40| 73 20 6d 61 6e 6e 65 72 | 2c 20 79 79 5f 73 63 61 |s manner|, yy_sca|
|00002d50| 6e 5f 62 75 66 66 65 72 | 20 72 65 74 75 72 6e 73 |n_buffer| returns|
|00002d60| 20 61 0a 09 20 20 6e 69 | 6c 20 70 6f 69 6e 74 65 | a.. ni|l pointe|
|00002d70| 72 20 69 6e 73 74 65 61 | 64 20 6f 66 20 63 72 65 |r instea|d of cre|
|00002d80| 61 74 69 6e 67 20 61 20 | 6e 65 77 20 69 6e 70 75 |ating a |new inpu|
|00002d90| 74 20 62 75 66 66 65 72 | 2e 0a 0a 09 20 20 54 68 |t buffer|.... Th|
|00002da0| 65 20 74 79 70 65 20 79 | 79 5f 73 69 7a 65 5f 74 |e type y|y_size_t|
|00002db0| 20 69 73 20 61 6e 20 69 | 6e 74 65 67 72 61 6c 20 | is an i|ntegral |
|00002dc0| 74 79 70 65 20 74 6f 20 | 77 68 69 63 68 20 79 6f |type to |which yo|
|00002dd0| 75 20 63 61 6e 20 63 61 | 73 74 0a 09 20 20 61 6e |u can ca|st.. an|
|00002de0| 20 69 6e 74 65 67 65 72 | 20 65 78 70 72 65 73 73 | integer| express|
|00002df0| 69 6f 6e 20 72 65 66 6c | 65 63 74 69 6e 67 20 74 |ion refl|ecting t|
|00002e00| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 62 |he size |of the b|
|00002e10| 75 66 66 65 72 2e 0a 0a | 09 2d 20 54 68 72 65 65 |uffer...|.- Three|
|00002e20| 20 6e 65 77 20 72 6f 75 | 74 69 6e 65 73 20 61 72 | new rou|tines ar|
|00002e30| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 66 6f 72 20 |e availa|ble for |
|00002e40| 6d 61 6e 69 70 75 6c 61 | 74 69 6e 67 20 73 74 61 |manipula|ting sta|
|00002e50| 63 6b 73 20 6f 66 0a 09 | 20 20 73 74 61 72 74 20 |cks of..| start |
|00002e60| 63 6f 6e 64 69 74 69 6f | 6e 73 3a 0a 0a 09 09 76 |conditio|ns:....v|
|00002e70| 6f 69 64 20 79 79 5f 70 | 75 73 68 5f 73 74 61 74 |oid yy_p|ush_stat|
|00002e80| 65 28 20 69 6e 74 20 6e | 65 77 5f 73 74 61 74 65 |e( int n|ew_state|
|00002e90| 20 29 0a 0a 09 20 20 70 | 75 73 68 65 73 20 74 68 | )... p|ushes th|
|00002ea0| 65 20 63 75 72 72 65 6e | 74 20 73 74 61 72 74 20 |e curren|t start |
|00002eb0| 63 6f 6e 64 69 74 69 6f | 6e 20 6f 6e 74 6f 20 74 |conditio|n onto t|
|00002ec0| 68 65 20 74 6f 70 20 6f | 66 20 74 68 65 20 73 74 |he top o|f the st|
|00002ed0| 61 63 6b 0a 09 20 20 61 | 6e 64 20 42 45 47 49 4e |ack.. a|nd BEGIN|
|00002ee0| 27 73 20 22 6e 65 77 5f | 73 74 61 74 65 22 20 28 |'s "new_|state" (|
|00002ef0| 72 65 63 61 6c 6c 20 74 | 68 61 74 20 73 74 61 72 |recall t|hat star|
|00002f00| 74 20 63 6f 6e 64 69 74 | 69 6f 6e 20 6e 61 6d 65 |t condit|ion name|
|00002f10| 73 20 61 72 65 0a 09 20 | 20 61 6c 73 6f 20 69 6e |s are.. | also in|
|00002f20| 74 65 67 65 72 73 29 2e | 0a 0a 09 09 76 6f 69 64 |tegers).|....void|
|00002f30| 20 79 79 5f 70 6f 70 5f | 73 74 61 74 65 28 29 0a | yy_pop_|state().|
|00002f40| 0a 09 20 20 70 6f 70 73 | 20 74 68 65 20 74 6f 70 |.. pops| the top|
|00002f50| 20 6f 66 20 74 68 65 20 | 73 74 61 63 6b 20 61 6e | of the |stack an|
|00002f60| 64 20 42 45 47 49 4e 27 | 73 20 74 6f 20 69 74 2c |d BEGIN'|s to it,|
|00002f70| 20 61 6e 64 0a 0a 09 09 | 69 6e 74 20 79 79 5f 74 | and....|int yy_t|
|00002f80| 6f 70 5f 73 74 61 74 65 | 28 29 0a 0a 09 20 20 72 |op_state|()... r|
|00002f90| 65 74 75 72 6e 73 20 74 | 68 65 20 74 6f 70 20 6f |eturns t|he top o|
|00002fa0| 66 20 74 68 65 20 73 74 | 61 63 6b 20 77 69 74 68 |f the st|ack with|
|00002fb0| 6f 75 74 20 61 6c 74 65 | 72 69 6e 67 20 74 68 65 |out alte|ring the|
|00002fc0| 20 73 74 61 63 6b 27 73 | 0a 09 20 20 63 6f 6e 74 | stack's|.. cont|
|00002fd0| 65 6e 74 73 2e 0a 0a 09 | 20 20 54 68 65 20 73 74 |ents....| The st|
|00002fe0| 61 72 74 20 63 6f 6e 64 | 69 74 69 6f 6e 20 73 74 |art cond|ition st|
|00002ff0| 61 63 6b 20 67 72 6f 77 | 73 20 64 79 6e 61 6d 69 |ack grow|s dynami|
|00003000| 63 61 6c 6c 79 20 61 6e | 64 20 73 6f 20 68 61 73 |cally an|d so has|
|00003010| 20 6e 6f 20 62 75 69 6c | 74 2d 69 6e 0a 09 20 20 | no buil|t-in.. |
|00003020| 73 69 7a 65 20 6c 69 6d | 69 74 61 74 69 6f 6e 2e |size lim|itation.|
|00003030| 20 20 49 66 20 6d 65 6d | 6f 72 79 20 69 73 20 65 | If mem|ory is e|
|00003040| 78 68 61 75 73 74 65 64 | 2c 20 70 72 6f 67 72 61 |xhausted|, progra|
|00003050| 6d 20 65 78 65 63 75 74 | 69 6f 6e 0a 09 20 20 69 |m execut|ion.. i|
|00003060| 73 20 61 62 6f 72 74 65 | 64 2e 0a 0a 09 20 20 54 |s aborte|d.... T|
|00003070| 6f 20 75 73 65 20 73 74 | 61 72 74 20 63 6f 6e 64 |o use st|art cond|
|00003080| 69 74 69 6f 6e 20 73 74 | 61 63 6b 73 2c 20 79 6f |ition st|acks, yo|
|00003090| 75 72 20 73 63 61 6e 6e | 65 72 20 6d 75 73 74 20 |ur scann|er must |
|000030a0| 69 6e 63 6c 75 64 65 0a | 09 20 20 61 20 22 25 6f |include.|. a "%o|
|000030b0| 70 74 69 6f 6e 20 73 74 | 61 63 6b 22 20 64 69 72 |ption st|ack" dir|
|000030c0| 65 63 74 69 76 65 2e 0a | 0a 09 2d 20 66 6c 65 78 |ective..|..- flex|
|000030d0| 20 6e 6f 77 20 73 75 70 | 70 6f 72 74 73 20 50 4f | now sup|ports PO|
|000030e0| 53 49 58 20 63 68 61 72 | 61 63 74 65 72 20 63 6c |SIX char|acter cl|
|000030f0| 61 73 73 20 65 78 70 72 | 65 73 73 69 6f 6e 73 2e |ass expr|essions.|
|00003100| 20 20 54 68 65 73 65 0a | 09 20 20 61 72 65 20 65 | These.|. are e|
|00003110| 78 70 72 65 73 73 69 6f | 6e 73 20 65 6e 63 6c 6f |xpressio|ns enclo|
|00003120| 73 65 64 20 69 6e 73 69 | 64 65 20 22 5b 3a 22 20 |sed insi|de "[:" |
|00003130| 61 6e 64 20 22 3a 5d 22 | 20 64 65 6c 69 6d 69 74 |and ":]"| delimit|
|00003140| 65 72 73 20 28 77 68 69 | 63 68 0a 09 20 20 74 68 |ers (whi|ch.. th|
|00003150| 65 6d 73 65 6c 76 65 73 | 20 6d 75 73 74 20 61 70 |emselves| must ap|
|00003160| 70 65 61 72 20 62 65 74 | 77 65 65 6e 20 74 68 65 |pear bet|ween the|
|00003170| 20 27 5b 27 20 61 6e 64 | 20 27 5d 27 20 6f 66 20 | '[' and| ']' of |
|00003180| 61 20 63 68 61 72 61 63 | 74 65 72 0a 09 20 20 63 |a charac|ter.. c|
|00003190| 6c 61 73 73 3b 20 6f 74 | 68 65 72 20 65 6c 65 6d |lass; ot|her elem|
|000031a0| 65 6e 74 73 20 6d 61 79 | 20 6f 63 63 75 72 20 69 |ents may| occur i|
|000031b0| 6e 73 69 64 65 20 74 68 | 65 20 63 68 61 72 61 63 |nside th|e charac|
|000031c0| 74 65 72 20 63 6c 61 73 | 73 2c 20 74 6f 6f 29 2e |ter clas|s, too).|
|000031d0| 0a 09 20 20 54 68 65 20 | 65 78 70 72 65 73 73 69 |.. The |expressi|
|000031e0| 6f 6e 73 20 66 6c 65 78 | 20 72 65 63 6f 67 6e 69 |ons flex| recogni|
|000031f0| 7a 65 73 20 61 72 65 3a | 0a 0a 09 09 5b 3a 61 6c |zes are:|....[:al|
|00003200| 6e 75 6d 3a 5d 20 5b 3a | 61 6c 70 68 61 3a 5d 20 |num:] [:|alpha:] |
|00003210| 5b 3a 62 6c 61 6e 6b 3a | 5d 20 5b 3a 63 6e 74 72 |[:blank:|] [:cntr|
|00003220| 6c 3a 5d 20 5b 3a 64 69 | 67 69 74 3a 5d 20 5b 3a |l:] [:di|git:] [:|
|00003230| 67 72 61 70 68 3a 5d 09 | 0a 09 09 5b 3a 6c 6f 77 |graph:].|...[:low|
|00003240| 65 72 3a 5d 20 5b 3a 70 | 72 69 6e 74 3a 5d 20 5b |er:] [:p|rint:] [|
|00003250| 3a 70 75 6e 63 74 3a 5d | 20 5b 3a 73 70 61 63 65 |:punct:]| [:space|
|00003260| 3a 5d 20 5b 3a 75 70 70 | 65 72 3a 5d 20 5b 3a 78 |:] [:upp|er:] [:x|
|00003270| 64 69 67 69 74 3a 5d 0a | 0a 09 20 20 54 68 65 73 |digit:].|.. Thes|
|00003280| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 61 6c |e expres|sions al|
|00003290| 6c 20 64 65 73 69 67 6e | 61 74 65 20 61 20 73 65 |l design|ate a se|
|000032a0| 74 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 20 |t of cha|racters |
|000032b0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 0a 09 20 |equivale|nt to.. |
|000032c0| 20 74 68 65 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | the cor|respondi|
|000032d0| 6e 67 20 69 73 58 58 58 | 20 66 75 6e 63 74 69 6f |ng isXXX| functio|
|000032e0| 6e 20 28 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |n (for e|xample, |
|000032f0| 5b 3a 61 6c 6e 75 6d 3a | 5d 20 64 65 73 69 67 6e |[:alnum:|] design|
|00003300| 61 74 65 73 0a 09 20 20 | 74 68 6f 73 65 20 63 68 |ates.. |those ch|
|00003310| 61 72 61 63 74 65 72 73 | 20 66 6f 72 20 77 68 69 |aracters| for whi|
|00003320| 63 68 20 69 73 61 6c 6e | 75 6d 28 29 20 72 65 74 |ch isaln|um() ret|
|00003330| 75 72 6e 73 20 74 72 75 | 65 20 2d 20 69 2e 65 2e |urns tru|e - i.e.|
|00003340| 2c 20 61 6e 79 0a 09 20 | 20 61 6c 70 68 61 62 65 |, any.. | alphabe|
|00003350| 74 69 63 20 6f 72 20 6e | 75 6d 65 72 69 63 29 2e |tic or n|umeric).|
|00003360| 20 20 53 6f 6d 65 20 73 | 79 73 74 65 6d 73 20 64 | Some s|ystems d|
|00003370| 6f 6e 27 74 20 70 72 6f | 76 69 64 65 20 69 73 62 |on't pro|vide isb|
|00003380| 6c 61 6e 6b 28 29 2c 0a | 09 20 20 73 6f 20 66 6c |lank(),.|. so fl|
|00003390| 65 78 20 64 65 66 69 6e | 65 73 20 5b 3a 62 6c 61 |ex defin|es [:bla|
|000033a0| 6e 6b 3a 5d 20 61 73 20 | 61 20 62 6c 61 6e 6b 20 |nk:] as |a blank |
|000033b0| 6f 72 20 61 20 74 61 62 | 2e 0a 0a 09 20 20 46 6f |or a tab|.... Fo|
|000033c0| 72 20 65 78 61 6d 70 6c | 65 2c 20 74 68 65 20 66 |r exampl|e, the f|
|000033d0| 6f 6c 6c 6f 77 69 6e 67 | 20 63 68 61 72 61 63 74 |ollowing| charact|
|000033e0| 65 72 20 63 6c 61 73 73 | 65 73 20 61 72 65 20 61 |er class|es are a|
|000033f0| 6c 6c 20 65 71 75 69 76 | 61 6c 65 6e 74 3a 0a 0a |ll equiv|alent:..|
|00003400| 09 09 5b 5b 3a 61 6c 6e | 75 6d 3a 5d 5d 0a 09 09 |..[[:aln|um:]]...|
|00003410| 5b 5b 3a 61 6c 70 68 61 | 3a 5d 5b 3a 64 69 67 69 |[[:alpha|:][:digi|
|00003420| 74 3a 5d 0a 09 09 5b 5b | 3a 61 6c 70 68 61 3a 5d |t:]...[[|:alpha:]|
|00003430| 30 2d 39 5d 0a 09 09 5b | 61 2d 7a 41 2d 5a 30 2d |0-9]...[|a-zA-Z0-|
|00003440| 39 5d 0a 0a 09 20 20 49 | 66 20 79 6f 75 72 20 73 |9]... I|f your s|
|00003450| 63 61 6e 6e 65 72 20 69 | 73 20 63 61 73 65 2d 69 |canner i|s case-i|
|00003460| 6e 73 65 6e 73 69 74 69 | 76 65 20 28 2d 69 20 66 |nsensiti|ve (-i f|
|00003470| 6c 61 67 29 2c 20 74 68 | 65 6e 20 5b 3a 75 70 70 |lag), th|en [:upp|
|00003480| 65 72 3a 5d 0a 09 20 20 | 61 6e 64 20 5b 3a 6c 6f |er:].. |and [:lo|
|00003490| 77 65 72 3a 5d 20 61 72 | 65 20 65 71 75 69 76 61 |wer:] ar|e equiva|
|000034a0| 6c 65 6e 74 20 74 6f 20 | 5b 3a 61 6c 70 68 61 3a |lent to |[:alpha:|
|000034b0| 5d 2e 0a 0a 09 2d 20 54 | 68 65 20 70 72 6f 6d 69 |]....- T|he promi|
|000034c0| 73 65 64 20 72 65 77 72 | 69 74 65 20 6f 66 20 74 |sed rewr|ite of t|
|000034d0| 68 65 20 43 2b 2b 20 46 | 6c 65 78 4c 65 78 65 72 |he C++ F|lexLexer|
|000034e0| 20 63 6c 61 73 73 20 68 | 61 73 20 6e 6f 74 20 79 | class h|as not y|
|000034f0| 65 74 0a 09 20 20 62 65 | 65 6e 20 64 6f 6e 65 2e |et.. be|en done.|
|00003500| 20 20 53 75 70 70 6f 72 | 74 20 66 6f 72 20 46 6c | Suppor|t for Fl|
|00003510| 65 78 4c 65 78 65 72 20 | 69 73 20 6c 69 6d 69 74 |exLexer |is limit|
|00003520| 65 64 20 61 74 20 74 68 | 65 20 6d 6f 6d 65 6e 74 |ed at th|e moment|
|00003530| 20 74 6f 0a 09 20 20 66 | 69 78 69 6e 67 20 73 68 | to.. f|ixing sh|
|00003540| 6f 77 2d 73 74 6f 70 70 | 65 72 20 62 75 67 73 2c |ow-stopp|er bugs,|
|00003550| 20 73 6f 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 | so, for| example|
|00003560| 2c 20 74 68 65 20 6e 65 | 77 20 66 75 6e 63 74 69 |, the ne|w functi|
|00003570| 6f 6e 73 0a 09 20 20 79 | 79 5f 73 63 61 6e 5f 73 |ons.. y|y_scan_s|
|00003580| 74 72 69 6e 67 28 29 20 | 26 20 66 72 69 65 6e 64 |tring() |& friend|
|00003590| 73 20 61 72 65 20 6e 6f | 74 20 61 76 61 69 6c 61 |s are no|t availa|
|000035a0| 62 6c 65 20 74 6f 20 46 | 6c 65 78 4c 65 78 65 72 |ble to F|lexLexer|
|000035b0| 0a 09 20 20 6f 62 6a 65 | 63 74 73 2e 0a 0a 09 2d |.. obje|cts....-|
|000035c0| 20 54 68 65 20 6e 65 77 | 20 6d 61 63 72 6f 0a 0a | The new| macro..|
|000035d0| 09 09 79 79 5f 73 65 74 | 5f 69 6e 74 65 72 61 63 |..yy_set|_interac|
|000035e0| 74 69 76 65 28 69 73 5f | 69 6e 74 65 72 61 63 74 |tive(is_|interact|
|000035f0| 69 76 65 29 0a 0a 09 20 | 20 63 61 6e 20 62 65 20 |ive)... | can be |
|00003600| 75 73 65 64 20 74 6f 20 | 63 6f 6e 74 72 6f 6c 20 |used to |control |
|00003610| 77 68 65 74 68 65 72 20 | 74 68 65 20 63 75 72 72 |whether |the curr|
|00003620| 65 6e 74 20 62 75 66 66 | 65 72 20 69 73 20 63 6f |ent buff|er is co|
|00003630| 6e 73 69 64 65 72 65 64 | 0a 09 20 20 22 69 6e 74 |nsidered|.. "int|
|00003640| 65 72 61 63 74 69 76 65 | 22 2e 20 20 41 6e 20 69 |eractive|". An i|
|00003650| 6e 74 65 72 61 63 74 69 | 76 65 20 62 75 66 66 65 |nteracti|ve buffe|
|00003660| 72 20 69 73 20 70 72 6f | 63 65 73 73 65 64 20 6d |r is pro|cessed m|
|00003670| 6f 72 65 20 73 6c 6f 77 | 6c 79 2c 0a 09 20 20 62 |ore slow|ly,.. b|
|00003680| 75 74 20 6d 75 73 74 20 | 62 65 20 75 73 65 64 20 |ut must |be used |
|00003690| 77 68 65 6e 20 74 68 65 | 20 73 63 61 6e 6e 65 72 |when the| scanner|
|000036a0| 27 73 20 69 6e 70 75 74 | 20 73 6f 75 72 63 65 20 |'s input| source |
|000036b0| 69 73 20 69 6e 64 65 65 | 64 0a 09 20 20 69 6e 74 |is indee|d.. int|
|000036c0| 65 72 61 63 74 69 76 65 | 20 74 6f 20 61 76 6f 69 |eractive| to avoi|
|000036d0| 64 20 70 72 6f 62 6c 65 | 6d 73 20 64 75 65 20 74 |d proble|ms due t|
|000036e0| 6f 20 77 61 69 74 69 6e | 67 20 74 6f 20 66 69 6c |o waitin|g to fil|
|000036f0| 6c 20 62 75 66 66 65 72 | 73 0a 09 20 20 28 73 65 |l buffer|s.. (se|
|00003700| 65 20 74 68 65 20 64 69 | 73 63 75 73 73 69 6f 6e |e the di|scussion|
|00003710| 20 6f 66 20 74 68 65 20 | 2d 49 20 66 6c 61 67 20 | of the |-I flag |
|00003720| 69 6e 20 66 6c 65 78 2e | 31 29 2e 20 20 41 20 6e |in flex.|1). A n|
|00003730| 6f 6e 2d 7a 65 72 6f 20 | 76 61 6c 75 65 0a 09 20 |on-zero |value.. |
|00003740| 20 69 6e 20 74 68 65 20 | 6d 61 63 72 6f 20 69 6e | in the |macro in|
|00003750| 76 6f 63 61 74 69 6f 6e | 20 6d 61 72 6b 73 20 74 |vocation| marks t|
|00003760| 68 65 20 62 75 66 66 65 | 72 20 61 73 20 69 6e 74 |he buffe|r as int|
|00003770| 65 72 61 63 74 69 76 65 | 2c 20 61 20 7a 65 72 6f |eractive|, a zero|
|00003780| 0a 09 20 20 76 61 6c 75 | 65 20 61 73 20 6e 6f 6e |.. valu|e as non|
|00003790| 2d 69 6e 74 65 72 61 63 | 74 69 76 65 2e 20 20 4e |-interac|tive. N|
|000037a0| 6f 74 65 20 74 68 61 74 | 20 75 73 65 20 6f 66 20 |ote that| use of |
|000037b0| 74 68 69 73 20 6d 61 63 | 72 6f 20 6f 76 65 72 72 |this mac|ro overr|
|000037c0| 69 64 65 73 0a 09 20 20 | 22 25 6f 70 74 69 6f 6e |ides.. |"%option|
|000037d0| 20 61 6c 77 61 79 73 2d | 69 6e 74 65 72 61 63 74 | always-|interact|
|000037e0| 69 76 65 22 20 6f 72 20 | 22 25 6f 70 74 69 6f 6e |ive" or |"%option|
|000037f0| 20 6e 65 76 65 72 2d 69 | 6e 74 65 72 61 63 74 69 | never-i|nteracti|
|00003800| 76 65 22 2e 0a 0a 09 20 | 20 79 79 5f 73 65 74 5f |ve".... | yy_set_|
|00003810| 69 6e 74 65 72 61 63 74 | 69 76 65 28 29 20 6d 75 |interact|ive() mu|
|00003820| 73 74 20 62 65 20 69 6e | 76 6f 6b 65 64 20 70 72 |st be in|voked pr|
|00003830| 69 6f 72 20 74 6f 20 62 | 65 67 69 6e 6e 69 6e 67 |ior to b|eginning|
|00003840| 20 74 6f 0a 09 20 20 73 | 63 61 6e 20 74 68 65 20 | to.. s|can the |
|00003850| 62 75 66 66 65 72 2e 0a | 0a 09 2d 20 54 68 65 20 |buffer..|..- The |
|00003860| 6e 65 77 20 6d 61 63 72 | 6f 0a 0a 09 09 79 79 5f |new macr|o....yy_|
|00003870| 73 65 74 5f 62 6f 6c 28 | 61 74 5f 62 6f 6c 29 0a |set_bol(|at_bol).|
|00003880| 0a 09 20 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |.. can |be used |
|00003890| 74 6f 20 63 6f 6e 74 72 | 6f 6c 20 77 68 65 74 68 |to contr|ol wheth|
|000038a0| 65 72 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |er the c|urrent b|
|000038b0| 75 66 66 65 72 27 73 20 | 73 63 61 6e 6e 69 6e 67 |uffer's |scanning|
|000038c0| 0a 09 20 20 63 6f 6e 74 | 65 78 74 20 66 6f 72 20 |.. cont|ext for |
|000038d0| 74 68 65 20 6e 65 78 74 | 20 74 6f 6b 65 6e 20 6d |the next| token m|
|000038e0| 61 74 63 68 20 69 73 20 | 64 6f 6e 65 20 61 73 20 |atch is |done as |
|000038f0| 74 68 6f 75 67 68 20 61 | 74 20 74 68 65 0a 09 20 |though a|t the.. |
|00003900| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 61 20 | beginni|ng of a |
|00003910| 6c 69 6e 65 20 28 6e 6f | 6e 2d 7a 65 72 6f 20 6d |line (no|n-zero m|
|00003920| 61 63 72 6f 20 61 72 67 | 75 6d 65 6e 74 3b 20 6d |acro arg|ument; m|
|00003930| 61 6b 65 73 20 27 5e 27 | 20 61 6e 63 68 6f 72 65 |akes '^'| anchore|
|00003940| 64 0a 09 20 20 72 75 6c | 65 73 20 61 63 74 69 76 |d.. rul|es activ|
|00003950| 65 29 20 6f 72 20 6e 6f | 74 20 61 74 20 74 68 65 |e) or no|t at the|
|00003960| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 61 20 | beginni|ng of a |
|00003970| 6c 69 6e 65 20 28 7a 65 | 72 6f 20 61 72 67 75 6d |line (ze|ro argum|
|00003980| 65 6e 74 2c 0a 09 20 20 | 27 5e 27 20 72 75 6c 65 |ent,.. |'^' rule|
|00003990| 73 20 69 6e 61 63 74 69 | 76 65 29 2e 0a 0a 09 2d |s inacti|ve)....-|
|000039a0| 20 52 65 6c 61 74 65 64 | 20 74 6f 20 74 68 69 73 | Related| to this|
|000039b0| 20 63 68 61 6e 67 65 2c | 20 74 68 65 20 6d 65 63 | change,| the mec|
|000039c0| 68 61 6e 69 73 6d 20 66 | 6f 72 20 64 65 74 65 72 |hanism f|or deter|
|000039d0| 6d 69 6e 69 6e 67 20 77 | 68 65 6e 20 61 20 73 63 |mining w|hen a sc|
|000039e0| 61 6e 20 69 73 0a 09 20 | 20 73 74 61 72 74 69 6e |an is.. | startin|
|000039f0| 67 20 61 74 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |g at the| beginni|
|00003a00| 6e 67 20 6f 66 20 61 20 | 6c 69 6e 65 20 68 61 73 |ng of a |line has|
|00003a10| 20 63 68 61 6e 67 65 64 | 2e 20 20 49 74 20 75 73 | changed|. It us|
|00003a20| 65 64 20 74 6f 20 62 65 | 0a 09 20 20 74 68 61 74 |ed to be|.. that|
|00003a30| 20 27 5e 27 20 77 61 73 | 20 61 63 74 69 76 65 20 | '^' was| active |
|00003a40| 69 66 66 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |iff the |characte|
|00003a50| 72 20 70 72 69 6f 72 20 | 74 6f 20 74 68 61 74 20 |r prior |to that |
|00003a60| 61 74 20 77 68 69 63 68 | 20 74 68 65 0a 09 20 20 |at which| the.. |
|00003a70| 73 63 61 6e 20 73 74 61 | 72 74 65 64 20 77 61 73 |scan sta|rted was|
|00003a80| 20 61 20 6e 65 77 6c 69 | 6e 65 2e 20 20 54 68 65 | a newli|ne. The|
|00003a90| 20 6d 65 63 68 61 6e 69 | 73 6d 20 6e 6f 77 20 69 | mechani|sm now i|
|00003aa0| 73 20 74 68 61 74 20 27 | 5e 27 20 69 73 0a 09 20 |s that '|^' is.. |
|00003ab0| 20 61 63 74 69 76 65 20 | 69 66 66 20 74 68 65 20 | active |iff the |
|00003ac0| 6c 61 73 74 20 74 6f 6b | 65 6e 20 65 6e 64 65 64 |last tok|en ended|
|00003ad0| 20 69 6e 20 61 20 6e 65 | 77 6c 69 6e 65 20 28 6f | in a ne|wline (o|
|00003ae0| 72 20 74 68 65 20 6c 61 | 73 74 20 63 61 6c 6c 20 |r the la|st call |
|00003af0| 74 6f 0a 09 20 20 69 6e | 70 75 74 28 29 20 72 65 |to.. in|put() re|
|00003b00| 74 75 72 6e 65 64 20 61 | 20 6e 65 77 6c 69 6e 65 |turned a| newline|
|00003b10| 29 2e 20 20 46 6f 72 20 | 6d 6f 73 74 20 75 73 65 |). For |most use|
|00003b20| 72 73 2c 20 74 68 65 20 | 64 69 66 66 65 72 65 6e |rs, the |differen|
|00003b30| 63 65 20 69 6e 0a 09 20 | 20 6d 65 63 68 61 6e 69 |ce in.. | mechani|
|00003b40| 73 6d 73 20 69 73 20 6e | 65 67 6c 69 67 69 62 6c |sms is n|egligibl|
|00003b50| 65 2e 20 20 57 68 65 72 | 65 20 69 74 20 77 69 6c |e. Wher|e it wil|
|00003b60| 6c 20 6d 61 6b 65 20 61 | 20 64 69 66 66 65 72 65 |l make a| differe|
|00003b70| 6e 63 65 2c 0a 09 20 20 | 68 6f 77 65 76 65 72 2c |nce,.. |however,|
|00003b80| 20 69 73 20 69 66 20 75 | 6e 70 75 74 28 29 20 6f | is if u|nput() o|
|00003b90| 72 20 79 79 6c 65 73 73 | 28 29 20 69 73 20 75 73 |r yyless|() is us|
|00003ba0| 65 64 20 74 6f 20 61 6c | 74 65 72 20 74 68 65 20 |ed to al|ter the |
|00003bb0| 69 6e 70 75 74 0a 09 20 | 20 73 74 72 65 61 6d 2e |input.. | stream.|
|00003bc0| 20 20 57 68 65 6e 20 69 | 6e 20 64 6f 75 62 74 2c | When i|n doubt,|
|00003bd0| 20 75 73 65 20 79 79 5f | 73 65 74 5f 62 6f 6c 28 | use yy_|set_bol(|
|00003be0| 29 2e 0a 0a 09 2d 20 54 | 68 65 20 6e 65 77 20 62 |)....- T|he new b|
|00003bf0| 65 67 69 6e 6e 69 6e 67 | 2d 6f 66 2d 6c 69 6e 65 |eginning|-of-line|
|00003c00| 20 6d 65 63 68 61 6e 69 | 73 6d 20 69 6e 76 6f 6c | mechani|sm invol|
|00003c10| 76 65 64 20 63 68 61 6e | 67 69 6e 67 20 73 6f 6d |ved chan|ging som|
|00003c20| 65 20 66 61 69 72 6c 79 | 0a 09 20 20 74 77 69 73 |e fairly|.. twis|
|00003c30| 74 65 64 20 63 6f 64 65 | 2c 20 73 6f 20 69 74 20 |ted code|, so it |
|00003c40| 6d 61 79 20 68 61 76 65 | 20 69 6e 74 72 6f 64 75 |may have| introdu|
|00003c50| 63 65 64 20 62 75 67 73 | 20 2d 20 62 65 77 61 72 |ced bugs| - bewar|
|00003c60| 65 20 2e 2e 2e 0a 0a 09 | 2d 20 54 68 65 20 6d 61 |e ......|- The ma|
|00003c70| 63 72 6f 20 59 59 5f 41 | 54 5f 42 4f 4c 28 29 20 |cro YY_A|T_BOL() |
|00003c80| 72 65 74 75 72 6e 73 20 | 74 72 75 65 20 69 66 20 |returns |true if |
|00003c90| 74 68 65 20 6e 65 78 74 | 20 74 6f 6b 65 6e 20 73 |the next| token s|
|00003ca0| 63 61 6e 6e 65 64 20 66 | 72 6f 6d 0a 09 20 20 74 |canned f|rom.. t|
|00003cb0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|00003cc0| 72 20 77 69 6c 6c 20 68 | 61 76 65 20 27 5e 27 20 |r will h|ave '^' |
|00003cd0| 72 75 6c 65 73 20 61 63 | 74 69 76 65 2c 20 66 61 |rules ac|tive, fa|
|00003ce0| 6c 73 65 20 6f 74 68 65 | 72 77 69 73 65 2e 0a 0a |lse othe|rwise...|
|00003cf0| 09 2d 20 54 68 65 20 6e | 65 77 20 66 75 6e 63 74 |.- The n|ew funct|
|00003d00| 69 6f 6e 0a 0a 09 09 76 | 6f 69 64 20 79 79 5f 66 |ion....v|oid yy_f|
|00003d10| 6c 75 73 68 5f 62 75 66 | 66 65 72 28 20 73 74 72 |lush_buf|fer( str|
|00003d20| 75 63 74 20 79 79 5f 62 | 75 66 66 65 72 5f 73 74 |uct yy_b|uffer_st|
|00003d30| 61 74 65 2a 20 62 20 29 | 0a 0a 09 20 20 66 6c 75 |ate* b )|... flu|
|00003d40| 73 68 65 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |shes the| content|
|00003d50| 73 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s of the| current|
|00003d60| 20 62 75 66 66 65 72 20 | 28 69 2e 65 2e 2c 20 6e | buffer |(i.e., n|
|00003d70| 65 78 74 20 74 69 6d 65 | 0a 09 20 20 74 68 65 20 |ext time|.. the |
|00003d80| 73 63 61 6e 6e 65 72 20 | 61 74 74 65 6d 70 74 73 |scanner |attempts|
|00003d90| 20 74 6f 20 6d 61 74 63 | 68 20 61 20 74 6f 6b 65 | to matc|h a toke|
|00003da0| 6e 20 75 73 69 6e 67 20 | 62 20 61 73 20 74 68 65 |n using |b as the|
|00003db0| 20 63 75 72 72 65 6e 74 | 0a 09 20 20 62 75 66 66 | current|.. buff|
|00003dc0| 65 72 2c 20 69 74 20 77 | 69 6c 6c 20 62 65 67 69 |er, it w|ill begi|
|00003dd0| 6e 20 62 79 20 69 6e 76 | 6f 6b 69 6e 67 20 59 59 |n by inv|oking YY|
|00003de0| 5f 49 4e 50 55 54 20 74 | 6f 20 66 69 6c 6c 20 74 |_INPUT t|o fill t|
|00003df0| 68 65 20 62 75 66 66 65 | 72 29 2e 0a 09 20 20 54 |he buffe|r)... T|
|00003e00| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 61 |his rout|ine is a|
|00003e10| 6c 73 6f 20 61 76 61 69 | 6c 61 62 6c 65 20 74 6f |lso avai|lable to|
|00003e20| 20 43 2b 2b 20 73 63 61 | 6e 6e 65 72 73 20 28 75 | C++ sca|nners (u|
|00003e30| 6e 6c 69 6b 65 20 73 6f | 6d 65 0a 09 20 20 6f 66 |nlike so|me.. of|
|00003e40| 20 74 68 65 20 6f 74 68 | 65 72 20 6e 65 77 20 72 | the oth|er new r|
|00003e50| 6f 75 74 69 6e 65 73 29 | 2e 0a 0a 09 20 20 54 68 |outines)|.... Th|
|00003e60| 65 20 72 65 6c 61 74 65 | 64 20 6d 61 63 72 6f 0a |e relate|d macro.|
|00003e70| 0a 09 09 59 59 5f 46 4c | 55 53 48 5f 42 55 46 46 |...YY_FL|USH_BUFF|
|00003e80| 45 52 0a 0a 09 20 20 66 | 6c 75 73 68 65 73 20 74 |ER... f|lushes t|
|00003e90| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00003ea0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|00003eb0| 72 2e 0a 0a 09 2d 20 41 | 20 6e 65 77 20 22 2d 6f |r....- A| new "-o|
|00003ec0| 6f 75 74 70 75 74 22 20 | 6f 70 74 69 6f 6e 20 77 |output" |option w|
|00003ed0| 72 69 74 65 73 20 74 68 | 65 20 67 65 6e 65 72 61 |rites th|e genera|
|00003ee0| 74 65 64 20 73 63 61 6e | 6e 65 72 20 74 6f 20 22 |ted scan|ner to "|
|00003ef0| 6f 75 74 70 75 74 22 2e | 0a 09 20 20 49 66 20 75 |output".|.. If u|
|00003f00| 73 65 64 20 77 69 74 68 | 20 2d 74 2c 20 74 68 65 |sed with| -t, the|
|00003f10| 20 73 63 61 6e 6e 65 72 | 20 69 73 20 73 74 69 6c | scanner| is stil|
|00003f20| 6c 20 77 72 69 74 74 65 | 6e 20 74 6f 20 73 74 64 |l writte|n to std|
|00003f30| 6f 75 74 2c 20 62 75 74 | 0a 09 20 20 69 74 73 20 |out, but|.. its |
|00003f40| 69 6e 74 65 72 6e 61 6c | 20 23 6c 69 6e 65 20 64 |internal| #line d|
|00003f50| 69 72 65 63 74 69 76 65 | 73 20 28 73 65 65 20 70 |irective|s (see p|
|00003f60| 72 65 76 69 6f 75 73 20 | 69 74 65 6d 29 20 75 73 |revious |item) us|
|00003f70| 65 20 22 6f 75 74 70 75 | 74 22 2e 0a 0a 09 2d 20 |e "outpu|t"....- |
|00003f80| 46 6c 65 78 20 6e 6f 77 | 20 67 65 6e 65 72 61 74 |Flex now| generat|
|00003f90| 65 73 20 23 6c 69 6e 65 | 20 64 69 72 65 63 74 69 |es #line| directi|
|00003fa0| 76 65 73 20 72 65 6c 61 | 74 69 6e 67 20 74 68 65 |ves rela|ting the|
|00003fb0| 20 63 6f 64 65 20 69 74 | 0a 09 20 20 70 72 6f 64 | code it|.. prod|
|00003fc0| 75 63 65 73 20 74 6f 20 | 74 68 65 20 6f 75 74 70 |uces to |the outp|
|00003fd0| 75 74 20 66 69 6c 65 3b | 20 74 68 69 73 20 6d 65 |ut file;| this me|
|00003fe0| 61 6e 73 20 74 68 61 74 | 20 65 72 72 6f 72 20 6d |ans that| error m|
|00003ff0| 65 73 73 61 67 65 73 0a | 09 20 20 69 6e 20 74 68 |essages.|. in th|
|00004000| 65 20 66 6c 65 78 2d 67 | 65 6e 65 72 61 74 65 64 |e flex-g|enerated|
|00004010| 20 63 6f 64 65 20 73 68 | 6f 75 6c 64 20 62 65 20 | code sh|ould be |
|00004020| 63 6f 72 72 65 63 74 6c | 79 20 70 69 6e 70 6f 69 |correctl|y pinpoi|
|00004030| 6e 74 65 64 2e 0a 0a 09 | 2d 20 57 68 65 6e 20 67 |nted....|- When g|
|00004040| 65 6e 65 72 61 74 69 6e | 67 20 23 6c 69 6e 65 20 |eneratin|g #line |
|00004050| 64 69 72 65 63 74 69 76 | 65 73 2c 20 66 69 6c 65 |directiv|es, file|
|00004060| 6e 61 6d 65 73 20 77 69 | 74 68 20 65 6d 62 65 64 |names wi|th embed|
|00004070| 64 65 64 20 27 5c 27 73 | 0a 09 20 20 68 61 76 65 |ded '\'s|.. have|
|00004080| 20 74 68 6f 73 65 20 63 | 68 61 72 61 63 74 65 72 | those c|haracter|
|00004090| 73 20 65 73 63 61 70 65 | 64 20 28 69 2e 65 2e 2c |s escape|d (i.e.,|
|000040a0| 20 74 75 72 6e 65 64 20 | 69 6e 74 6f 20 27 5c 5c | turned |into '\\|
|000040b0| 27 29 2e 20 20 54 68 69 | 73 0a 09 20 20 66 65 61 |'). Thi|s.. fea|
|000040c0| 74 75 72 65 20 68 65 6c | 70 73 20 77 69 74 68 20 |ture hel|ps with |
|000040d0| 72 65 70 6f 72 74 69 6e | 67 20 66 69 6c 65 6e 61 |reportin|g filena|
|000040e0| 6d 65 73 20 66 6f 72 20 | 73 6f 6d 65 20 4d 53 2d |mes for |some MS-|
|000040f0| 44 4f 53 20 61 6e 64 20 | 4f 53 2f 32 0a 09 20 20 |DOS and |OS/2.. |
|00004100| 73 79 73 74 65 6d 73 2e | 0a 0a 09 2d 20 54 68 65 |systems.|...- The|
|00004110| 20 46 6c 65 78 4c 65 78 | 65 72 20 63 6c 61 73 73 | FlexLex|er class|
|00004120| 20 69 6e 63 6c 75 64 65 | 73 20 74 77 6f 20 6e 65 | include|s two ne|
|00004130| 77 20 70 75 62 6c 69 63 | 20 6d 65 6d 62 65 72 20 |w public| member |
|00004140| 66 75 6e 63 74 69 6f 6e | 73 3a 0a 0a 09 09 76 69 |function|s:....vi|
|00004150| 72 74 75 61 6c 20 76 6f | 69 64 20 73 77 69 74 63 |rtual vo|id switc|
|00004160| 68 5f 73 74 72 65 61 6d | 73 28 20 69 73 74 72 65 |h_stream|s( istre|
|00004170| 61 6d 2a 20 6e 65 77 5f | 69 6e 20 3d 20 30 2c 0a |am* new_|in = 0,.|
|00004180| 09 09 09 09 09 09 6f 73 | 74 72 65 61 6d 2a 20 6e |......os|tream* n|
|00004190| 65 77 5f 6f 75 74 20 3d | 20 30 20 29 0a 0a 09 20 |ew_out =| 0 )... |
|000041a0| 20 72 65 61 73 73 69 67 | 6e 73 20 79 79 69 6e 20 | reassig|ns yyin |
|000041b0| 74 6f 20 6e 65 77 5f 69 | 6e 20 28 69 66 20 6e 6f |to new_i|n (if no|
|000041c0| 6e 2d 6e 69 6c 29 20 61 | 6e 64 20 79 79 6f 75 74 |n-nil) a|nd yyout|
|000041d0| 20 74 6f 20 6e 65 77 5f | 6f 75 74 0a 09 20 20 28 | to new_|out.. (|
|000041e0| 64 69 74 74 6f 29 2c 20 | 64 65 6c 65 74 69 6e 67 |ditto), |deleting|
|000041f0| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 69 6e | the pre|vious in|
|00004200| 70 75 74 20 62 75 66 66 | 65 72 20 69 66 20 79 79 |put buff|er if yy|
|00004210| 69 6e 20 69 73 0a 09 20 | 20 72 65 61 73 73 69 67 |in is.. | reassig|
|00004220| 6e 65 64 2e 20 20 49 74 | 20 69 73 20 75 73 65 64 |ned. It| is used|
|00004230| 20 62 79 3a 0a 0a 09 09 | 69 6e 74 20 79 79 6c 65 | by:....|int yyle|
|00004240| 78 28 20 69 73 74 72 65 | 61 6d 2a 20 6e 65 77 5f |x( istre|am* new_|
|00004250| 69 6e 20 3d 20 30 2c 20 | 6f 73 74 72 65 61 6d 2a |in = 0, |ostream*|
|00004260| 20 6e 65 77 5f 6f 75 74 | 20 3d 20 30 20 29 0a 0a | new_out| = 0 )..|
|00004270| 09 20 20 77 68 69 63 68 | 20 66 69 72 73 74 20 63 |. which| first c|
|00004280| 61 6c 6c 73 20 73 77 69 | 74 63 68 5f 73 74 72 65 |alls swi|tch_stre|
|00004290| 61 6d 73 28 29 20 61 6e | 64 20 74 68 65 6e 20 72 |ams() an|d then r|
|000042a0| 65 74 75 72 6e 73 20 74 | 68 65 20 76 61 6c 75 65 |eturns t|he value|
|000042b0| 0a 09 20 20 6f 66 20 63 | 61 6c 6c 69 6e 67 20 79 |.. of c|alling y|
|000042c0| 79 6c 65 78 28 29 2e 0a | 0a 09 2d 20 43 2b 2b 20 |ylex()..|..- C++ |
|000042d0| 73 63 61 6e 6e 65 72 73 | 20 6e 6f 77 20 68 61 76 |scanners| now hav|
|000042e0| 65 20 79 79 5f 66 6c 65 | 78 5f 64 65 62 75 67 20 |e yy_fle|x_debug |
|000042f0| 61 73 20 61 20 6d 65 6d | 62 65 72 20 76 61 72 69 |as a mem|ber vari|
|00004300| 61 62 6c 65 20 6f 66 0a | 09 20 20 46 6c 65 78 4c |able of.|. FlexL|
|00004310| 65 78 65 72 20 72 61 74 | 68 65 72 20 74 68 61 6e |exer rat|her than|
|00004320| 20 61 20 67 6c 6f 62 61 | 6c 2c 20 61 6e 64 20 6d | a globa|l, and m|
|00004330| 65 6d 62 65 72 20 66 75 | 6e 63 74 69 6f 6e 73 20 |ember fu|nctions |
|00004340| 66 6f 72 20 74 65 73 74 | 69 6e 67 0a 09 20 20 61 |for test|ing.. a|
|00004350| 6e 64 20 73 65 74 74 69 | 6e 67 20 69 74 2e 0a 0a |nd setti|ng it...|
|00004360| 09 2d 20 57 68 65 6e 20 | 67 65 6e 65 72 61 74 69 |.- When |generati|
|00004370| 6e 67 20 61 20 43 2b 2b | 20 73 63 61 6e 6e 69 6e |ng a C++| scannin|
|00004380| 67 20 63 6c 61 73 73 2c | 20 79 6f 75 20 63 61 6e |g class,| you can|
|00004390| 20 6e 6f 77 20 75 73 65 | 0a 0a 09 09 25 6f 70 74 | now use|....%opt|
|000043a0| 69 6f 6e 20 79 79 63 6c | 61 73 73 3d 22 66 6f 6f |ion yycl|ass="foo|
|000043b0| 22 0a 0a 09 20 20 74 6f | 20 69 6e 66 6f 72 6d 20 |"... to| inform |
|000043c0| 66 6c 65 78 20 74 68 61 | 74 20 79 6f 75 20 68 61 |flex tha|t you ha|
|000043d0| 76 65 20 64 65 72 69 76 | 65 64 20 22 66 6f 6f 22 |ve deriv|ed "foo"|
|000043e0| 20 61 73 20 61 20 73 75 | 62 63 6c 61 73 73 20 6f | as a su|bclass o|
|000043f0| 66 0a 09 20 20 79 79 46 | 6c 65 78 4c 65 78 65 72 |f.. yyF|lexLexer|
|00004400| 2c 20 73 6f 20 66 6c 65 | 78 20 77 69 6c 6c 20 70 |, so fle|x will p|
|00004410| 6c 61 63 65 20 79 6f 75 | 72 20 61 63 74 69 6f 6e |lace you|r action|
|00004420| 73 20 69 6e 20 74 68 65 | 20 6d 65 6d 62 65 72 0a |s in the| member.|
|00004430| 09 20 20 66 75 6e 63 74 | 69 6f 6e 20 66 6f 6f 3a |. funct|ion foo:|
|00004440| 3a 79 79 6c 65 78 28 29 | 20 69 6e 73 74 65 61 64 |:yylex()| instead|
|00004450| 20 6f 66 20 79 79 46 6c | 65 78 4c 65 78 65 72 3a | of yyFl|exLexer:|
|00004460| 3a 79 79 6c 65 78 28 29 | 2e 20 20 49 74 20 61 6c |:yylex()|. It al|
|00004470| 73 6f 0a 09 20 20 67 65 | 6e 65 72 61 74 65 73 20 |so.. ge|nerates |
|00004480| 61 20 79 79 46 6c 65 78 | 4c 65 78 65 72 3a 3a 79 |a yyFlex|Lexer::y|
|00004490| 79 6c 65 78 28 29 20 6d | 65 6d 62 65 72 20 66 75 |ylex() m|ember fu|
|000044a0| 6e 63 74 69 6f 6e 20 74 | 68 61 74 20 67 65 6e 65 |nction t|hat gene|
|000044b0| 72 61 74 65 73 20 61 0a | 09 20 20 72 75 6e 2d 74 |rates a.|. run-t|
|000044c0| 69 6d 65 20 65 72 72 6f | 72 20 69 66 20 63 61 6c |ime erro|r if cal|
|000044d0| 6c 65 64 20 28 62 79 20 | 69 6e 76 6f 6b 69 6e 67 |led (by |invoking|
|000044e0| 20 79 79 46 6c 65 78 4c | 65 78 65 72 3a 3a 4c 65 | yyFlexL|exer::Le|
|000044f0| 78 65 72 45 72 72 6f 72 | 28 29 29 2e 0a 09 20 20 |xerError|())... |
|00004500| 54 68 69 73 20 66 65 61 | 74 75 72 65 20 69 73 20 |This fea|ture is |
|00004510| 6e 65 63 65 73 73 61 72 | 79 20 69 66 20 79 6f 75 |necessar|y if you|
|00004520| 72 20 73 75 62 63 6c 61 | 73 73 20 22 66 6f 6f 22 |r subcla|ss "foo"|
|00004530| 20 69 6e 74 72 6f 64 75 | 63 65 73 20 73 6f 6d 65 | introdu|ces some|
|00004540| 0a 09 20 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 6d |.. addi|tional m|
|00004550| 65 6d 62 65 72 20 66 75 | 6e 63 74 69 6f 6e 73 20 |ember fu|nctions |
|00004560| 6f 72 20 76 61 72 69 61 | 62 6c 65 73 20 74 68 61 |or varia|bles tha|
|00004570| 74 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 61 63 |t you ne|ed to ac|
|00004580| 63 65 73 73 0a 09 20 20 | 66 72 6f 6d 20 79 79 6c |cess.. |from yyl|
|00004590| 65 78 28 29 2e 0a 0a 09 | 2d 20 43 75 72 72 65 6e |ex()....|- Curren|
|000045a0| 74 20 74 65 78 69 6e 66 | 6f 20 66 69 6c 65 73 20 |t texinf|o files |
|000045b0| 69 6e 20 4d 49 53 43 2f | 74 65 78 69 6e 66 6f 2c |in MISC/|texinfo,|
|000045c0| 20 63 6f 6e 74 72 69 62 | 75 74 65 64 20 62 79 20 | contrib|uted by |
|000045d0| 46 72 61 6e 63 6f 69 73 | 0a 09 20 20 50 69 6e 61 |Francois|.. Pina|
|000045e0| 72 64 2e 0a 0a 09 2d 20 | 59 6f 75 20 63 61 6e 20 |rd....- |You can |
|000045f0| 6e 6f 77 20 63 68 61 6e | 67 65 20 74 68 65 20 6e |now chan|ge the n|
|00004600| 61 6d 65 20 22 66 6c 65 | 78 22 20 74 6f 20 73 6f |ame "fle|x" to so|
|00004610| 6d 65 74 68 69 6e 67 20 | 65 6c 73 65 20 28 65 2e |mething |else (e.|
|00004620| 67 2e 2c 20 22 6c 65 78 | 22 29 0a 09 20 20 62 79 |g., "lex|").. by|
|00004630| 20 72 65 64 65 66 69 6e | 69 6e 67 20 24 28 46 4c | redefin|ing $(FL|
|00004640| 45 58 29 20 69 6e 20 74 | 68 65 20 4d 61 6b 65 66 |EX) in t|he Makef|
|00004650| 69 6c 65 2e 0a 0a 09 2d | 20 54 77 6f 20 62 75 67 |ile....-| Two bug|
|00004660| 73 20 28 6f 6e 65 20 73 | 65 72 69 6f 75 73 29 20 |s (one s|erious) |
|00004670| 74 68 61 74 20 63 6f 75 | 6c 64 20 63 61 75 73 65 |that cou|ld cause|
|00004680| 20 22 62 69 67 63 68 65 | 63 6b 22 20 74 6f 20 66 | "bigche|ck" to f|
|00004690| 61 69 6c 20 68 61 76 65 | 0a 09 20 20 62 65 65 6e |ail have|.. been|
|000046a0| 20 66 69 78 65 64 2e 0a | 0a 09 2d 20 41 20 6e 75 | fixed..|..- A nu|
|000046b0| 6d 62 65 72 20 6f 66 20 | 70 6f 72 74 61 62 69 6c |mber of |portabil|
|000046c0| 69 74 79 2f 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |ity/conf|iguratio|
|000046d0| 6e 20 63 68 61 6e 67 65 | 73 20 68 61 76 65 20 62 |n change|s have b|
|000046e0| 65 65 6e 20 6d 61 64 65 | 0a 09 20 20 66 6f 72 20 |een made|.. for |
|000046f0| 65 61 73 69 65 72 20 70 | 6f 72 74 61 62 69 6c 69 |easier p|ortabili|
|00004700| 74 79 2e 0a 0a 09 2d 20 | 59 6f 75 20 63 61 6e 20 |ty....- |You can |
|00004710| 75 73 65 20 22 59 59 53 | 54 41 54 45 22 20 69 6e |use "YYS|TATE" in|
|00004720| 20 79 6f 75 72 20 73 63 | 61 6e 6e 65 72 20 61 73 | your sc|anner as|
|00004730| 20 61 6e 20 61 6c 69 61 | 73 20 66 6f 72 20 59 59 | an alia|s for YY|
|00004740| 5f 53 54 41 52 54 0a 09 | 20 20 28 66 6f 72 20 41 |_START..| (for A|
|00004750| 54 26 54 20 6c 65 78 20 | 63 6f 6d 70 61 74 69 62 |T&T lex |compatib|
|00004760| 69 6c 69 74 79 29 2e 0a | 0a 09 2d 20 69 6e 70 75 |ility)..|..- inpu|
|00004770| 74 28 29 20 6e 6f 77 20 | 6d 61 69 6e 74 61 69 6e |t() now |maintain|
|00004780| 73 20 79 79 6c 69 6e 65 | 6e 6f 2e 0a 0a 09 2d 20 |s yyline|no....- |
|00004790| 69 6e 70 75 74 28 29 20 | 6e 6f 20 6c 6f 6e 67 65 |input() |no longe|
|000047a0| 72 20 74 72 61 73 68 65 | 73 20 79 79 74 65 78 74 |r trashe|s yytext|
|000047b0| 2e 0a 0a 09 2d 20 69 6e | 74 65 72 61 63 74 69 76 |....- in|teractiv|
|000047c0| 65 20 73 63 61 6e 6e 65 | 72 73 20 6e 6f 77 20 72 |e scanne|rs now r|
|000047d0| 65 61 64 20 63 68 61 72 | 61 63 74 65 72 73 20 69 |ead char|acters i|
|000047e0| 6e 20 59 59 5f 49 4e 50 | 55 54 20 75 70 20 74 6f |n YY_INP|UT up to|
|000047f0| 20 61 0a 09 20 20 6e 65 | 77 6c 69 6e 65 2c 20 61 | a.. ne|wline, a|
|00004800| 20 6c 61 72 67 65 20 70 | 65 72 66 6f 72 6d 61 6e | large p|erforman|
|00004810| 63 65 20 67 61 69 6e 2e | 0a 0a 09 2d 20 43 2b 2b |ce gain.|...- C++|
|00004820| 20 73 63 61 6e 6e 65 72 | 20 6f 62 6a 65 63 74 73 | scanner| objects|
|00004830| 20 6e 6f 77 20 77 6f 72 | 6b 20 77 69 74 68 20 74 | now wor|k with t|
|00004840| 68 65 20 2d 50 20 6f 70 | 74 69 6f 6e 2e 20 20 59 |he -P op|tion. Y|
|00004850| 6f 75 20 69 6e 63 6c 75 | 64 65 0a 09 20 20 3c 46 |ou inclu|de.. <F|
|00004860| 6c 65 78 4c 65 78 65 72 | 2e 68 3e 20 6f 6e 63 65 |lexLexer|.h> once|
|00004870| 20 70 65 72 20 73 63 61 | 6e 6e 65 72 20 2d 20 73 | per sca|nner - s|
|00004880| 65 65 20 63 6f 6d 6d 65 | 6e 74 73 20 69 6e 20 3c |ee comme|nts in <|
|00004890| 46 6c 65 78 4c 65 78 65 | 72 2e 68 3e 0a 09 20 20 |FlexLexe|r.h>.. |
|000048a0| 28 6f 72 20 66 6c 65 78 | 2e 31 29 20 66 6f 72 20 |(or flex|.1) for |
|000048b0| 64 65 74 61 69 6c 73 2e | 0a 0a 09 2d 20 43 2b 2b |details.|...- C++|
|000048c0| 20 46 6c 65 78 4c 65 78 | 65 72 20 6f 62 6a 65 63 | FlexLex|er objec|
|000048d0| 74 73 20 6e 6f 77 20 75 | 73 65 20 74 68 65 20 22 |ts now u|se the "|
|000048e0| 63 65 72 72 22 20 73 74 | 72 65 61 6d 20 74 6f 20 |cerr" st|ream to |
|000048f0| 72 65 70 6f 72 74 20 2d | 64 20 6f 75 74 70 75 74 |report -|d output|
|00004900| 0a 09 20 20 69 6e 73 74 | 65 61 64 20 6f 66 20 73 |.. inst|ead of s|
|00004910| 74 64 69 6f 2e 0a 0a 09 | 2d 20 54 68 65 20 2d 63 |tdio....|- The -c|
|00004920| 20 66 6c 61 67 20 6e 6f | 77 20 68 61 73 20 69 74 | flag no|w has it|
|00004930| 73 20 66 75 6c 6c 20 67 | 6c 6f 72 69 6f 75 73 20 |s full g|lorious |
|00004940| 50 4f 53 49 58 20 69 6e | 74 65 72 70 72 65 74 61 |POSIX in|terpreta|
|00004950| 74 69 6f 6e 20 28 64 6f | 0a 09 20 20 6e 6f 74 68 |tion (do|.. noth|
|00004960| 69 6e 67 29 2c 20 72 61 | 74 68 65 72 20 74 68 61 |ing), ra|ther tha|
|00004970| 6e 20 62 65 69 6e 67 20 | 69 6e 74 65 72 70 72 65 |n being |interpre|
|00004980| 74 65 64 20 61 73 20 61 | 6e 20 6f 6c 64 2d 73 74 |ted as a|n old-st|
|00004990| 79 6c 65 20 2d 43 20 66 | 6c 61 67 2e 0a 0a 09 2d |yle -C f|lag....-|
|000049a0| 20 53 63 61 6e 6e 65 72 | 73 20 67 65 6e 65 72 61 | Scanner|s genera|
|000049b0| 74 65 64 20 62 79 20 66 | 6c 65 78 20 6e 6f 77 20 |ted by f|lex now |
|000049c0| 69 6e 63 6c 75 64 65 20 | 74 77 6f 20 23 64 65 66 |include |two #def|
|000049d0| 69 6e 65 27 73 20 67 69 | 76 69 6e 67 0a 09 20 20 |ine's gi|ving.. |
|000049e0| 74 68 65 20 6d 61 6a 6f | 72 20 61 6e 64 20 6d 69 |the majo|r and mi|
|000049f0| 6e 6f 72 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |nor vers|ion numb|
|00004a00| 65 72 73 20 28 59 59 5f | 46 4c 45 58 5f 4d 41 4a |ers (YY_|FLEX_MAJ|
|00004a10| 4f 52 5f 56 45 52 53 49 | 4f 4e 2c 0a 09 20 20 59 |OR_VERSI|ON,.. Y|
|00004a20| 59 5f 46 4c 45 58 5f 4d | 49 4e 4f 52 5f 56 45 52 |Y_FLEX_M|INOR_VER|
|00004a30| 53 49 4f 4e 29 2e 20 20 | 54 68 65 73 65 20 63 61 |SION). |These ca|
|00004a40| 6e 20 74 68 65 6e 20 62 | 65 20 74 65 73 74 65 64 |n then b|e tested|
|00004a50| 20 74 6f 20 73 65 65 0a | 09 20 20 77 68 65 74 68 | to see.|. wheth|
|00004a60| 65 72 20 63 65 72 74 61 | 69 6e 20 66 6c 65 78 20 |er certa|in flex |
|00004a70| 66 65 61 74 75 72 65 73 | 20 61 72 65 20 61 76 61 |features| are ava|
|00004a80| 69 6c 61 62 6c 65 2e 0a | 0a 09 2d 20 53 63 61 6e |ilable..|..- Scan|
|00004a90| 6e 65 72 73 20 67 65 6e | 65 72 61 74 65 64 20 75 |ners gen|erated u|
|00004aa0| 73 69 6e 67 20 2d 6c 20 | 6c 65 78 20 63 6f 6d 70 |sing -l |lex comp|
|00004ab0| 61 74 69 62 69 6c 69 74 | 79 20 6e 6f 77 20 68 61 |atibilit|y now ha|
|00004ac0| 76 65 20 74 68 65 20 73 | 79 6d 62 6f 6c 0a 09 20 |ve the s|ymbol.. |
|00004ad0| 20 59 59 5f 46 4c 45 58 | 5f 4c 45 58 5f 43 4f 4d | YY_FLEX|_LEX_COM|
|00004ae0| 50 41 54 20 23 64 65 66 | 69 6e 65 27 64 2e 0a 0a |PAT #def|ine'd...|
|00004af0| 09 2d 20 57 68 65 6e 20 | 69 6e 69 74 69 61 6c 69 |.- When |initiali|
|00004b00| 7a 69 6e 67 20 28 69 2e | 65 2e 2c 20 79 79 5f 69 |zing (i.|e., yy_i|
|00004b10| 6e 69 74 20 69 73 20 6e | 6f 6e 2d 7a 65 72 6f 20 |nit is n|on-zero |
|00004b20| 6f 6e 20 65 6e 74 72 79 | 20 74 6f 20 79 79 6c 65 |on entry| to yyle|
|00004b30| 78 28 29 29 2c 0a 09 20 | 20 67 65 6e 65 72 61 74 |x()),.. | generat|
|00004b40| 65 64 20 73 63 61 6e 6e | 65 72 73 20 6e 6f 77 20 |ed scann|ers now |
|00004b50| 73 65 74 20 79 79 5f 69 | 6e 69 74 20 74 6f 20 7a |set yy_i|nit to z|
|00004b60| 65 72 6f 20 62 65 66 6f | 72 65 20 65 78 65 63 75 |ero befo|re execu|
|00004b70| 74 69 6e 67 0a 09 20 20 | 59 59 5f 55 53 45 52 5f |ting.. |YY_USER_|
|00004b80| 49 4e 49 54 2e 20 20 54 | 68 69 73 20 6d 65 61 6e |INIT. T|his mean|
|00004b90| 73 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 73 |s that y|ou can s|
|00004ba0| 65 74 20 79 79 5f 69 6e | 69 74 20 62 61 63 6b 20 |et yy_in|it back |
|00004bb0| 74 6f 20 61 0a 09 20 20 | 6e 6f 6e 2d 7a 65 72 6f |to a.. |non-zero|
|00004bc0| 20 76 61 6c 75 65 20 69 | 6e 20 59 59 5f 55 53 45 | value i|n YY_USE|
|00004bd0| 52 5f 49 4e 49 54 20 69 | 66 20 79 6f 75 20 6e 65 |R_INIT i|f you ne|
|00004be0| 65 64 20 74 68 65 20 73 | 63 61 6e 6e 65 72 20 74 |ed the s|canner t|
|00004bf0| 6f 20 62 65 0a 09 20 20 | 72 65 69 6e 69 74 69 61 |o be.. |reinitia|
|00004c00| 6c 69 7a 65 64 20 6f 6e | 20 74 68 65 20 6e 65 78 |lized on| the nex|
|00004c10| 74 20 63 61 6c 6c 2e 0a | 0a 09 2d 20 59 6f 75 20 |t call..|..- You |
|00004c20| 63 61 6e 20 6e 6f 77 20 | 75 73 65 20 22 23 6c 69 |can now |use "#li|
|00004c30| 6e 65 22 20 64 69 72 65 | 63 74 69 76 65 73 20 69 |ne" dire|ctives i|
|00004c40| 6e 20 74 68 65 20 66 69 | 72 73 74 20 73 65 63 74 |n the fi|rst sect|
|00004c50| 69 6f 6e 20 6f 66 20 79 | 6f 75 72 0a 09 20 20 73 |ion of y|our.. s|
|00004c60| 63 61 6e 6e 65 72 20 73 | 70 65 63 69 66 69 63 61 |canner s|pecifica|
|00004c70| 74 69 6f 6e 2e 0a 0a 09 | 2d 20 57 68 65 6e 20 67 |tion....|- When g|
|00004c80| 65 6e 65 72 61 74 69 6e | 67 20 66 75 6c 6c 2d 74 |eneratin|g full-t|
|00004c90| 61 62 6c 65 20 73 63 61 | 6e 6e 65 72 73 20 28 2d |able sca|nners (-|
|00004ca0| 43 66 29 2c 20 66 6c 65 | 78 20 6e 6f 77 20 70 75 |Cf), fle|x now pu|
|00004cb0| 74 73 20 62 72 61 63 65 | 73 0a 09 20 20 61 72 6f |ts brace|s.. aro|
|00004cc0| 75 6e 64 20 65 61 63 68 | 20 72 6f 77 20 6f 66 20 |und each| row of |
|00004cd0| 74 68 65 20 32 2d 64 20 | 61 72 72 61 79 20 69 6e |the 2-d |array in|
|00004ce0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 2c 20 74 6f |itializa|tion, to|
|00004cf0| 20 73 69 6c 65 6e 63 65 | 20 77 61 72 6e 69 6e 67 | silence| warning|
|00004d00| 73 0a 09 20 20 6f 6e 20 | 6f 76 65 72 2d 7a 65 61 |s.. on |over-zea|
|00004d10| 6c 6f 75 73 20 63 6f 6d | 70 69 6c 65 72 73 2e 0a |lous com|pilers..|
|00004d20| 0a 09 2d 20 49 6d 70 72 | 6f 76 65 64 20 73 75 70 |..- Impr|oved sup|
|00004d30| 70 6f 72 74 20 66 6f 72 | 20 4d 53 2d 44 4f 53 2e |port for| MS-DOS.|
|00004d40| 20 20 54 68 65 20 66 6c | 65 78 20 73 6f 75 72 63 | The fl|ex sourc|
|00004d50| 65 73 20 68 61 76 65 20 | 62 65 65 6e 20 73 75 63 |es have |been suc|
|00004d60| 63 65 73 73 66 75 6c 6c | 79 0a 09 20 20 62 75 69 |cessfull|y.. bui|
|00004d70| 6c 74 2c 20 75 6e 6d 6f | 64 69 66 69 65 64 2c 20 |lt, unmo|dified, |
|00004d80| 66 6f 72 20 42 6f 72 6c | 61 6e 64 20 34 2e 30 32 |for Borl|and 4.02|
|00004d90| 20 28 61 6c 6c 20 74 68 | 61 74 27 73 20 72 65 71 | (all th|at's req|
|00004da0| 75 69 72 65 64 20 69 73 | 20 61 0a 09 20 20 42 6f |uired is| a.. Bo|
|00004db0| 72 6c 61 6e 64 20 4d 61 | 6b 65 66 69 6c 65 20 61 |rland Ma|kefile a|
|00004dc0| 6e 64 20 63 6f 6e 66 69 | 67 2e 68 20 66 69 6c 65 |nd confi|g.h file|
|00004dd0| 2c 20 77 68 69 63 68 20 | 61 72 65 20 73 75 70 70 |, which |are supp|
|00004de0| 6c 69 65 64 20 69 6e 0a | 09 20 20 4d 49 53 43 2f |lied in.|. MISC/|
|00004df0| 42 6f 72 6c 61 6e 64 20 | 2d 20 63 6f 6e 74 72 69 |Borland |- contri|
|00004e00| 62 75 74 65 64 20 62 79 | 20 54 65 72 72 65 6e 63 |buted by| Terrenc|
|00004e10| 65 20 4f 20 4b 61 6e 65 | 29 2e 0a 0a 09 2d 20 49 |e O Kane|)....- I|
|00004e20| 6d 70 72 6f 76 65 64 20 | 73 75 70 70 6f 72 74 20 |mproved |support |
|00004e30| 66 6f 72 20 4d 61 63 69 | 6e 74 6f 73 68 20 75 73 |for Maci|ntosh us|
|00004e40| 69 6e 67 20 54 68 69 6e | 6b 20 43 20 2d 20 74 68 |ing Thin|k C - th|
|00004e50| 65 20 73 6f 75 72 63 65 | 73 20 73 68 6f 75 6c 64 |e source|s should|
|00004e60| 0a 09 20 20 62 75 69 6c | 64 20 66 6f 72 20 74 68 |.. buil|d for th|
|00004e70| 69 73 20 70 6c 61 74 66 | 6f 72 6d 20 22 6f 75 74 |is platf|orm "out|
|00004e80| 20 6f 66 20 74 68 65 20 | 62 6f 78 22 2e 20 20 43 | of the |box". C|
|00004e90| 6f 6e 74 72 69 62 75 74 | 65 64 20 62 79 20 53 63 |ontribut|ed by Sc|
|00004ea0| 6f 74 74 0a 09 20 20 48 | 6f 66 6d 61 6e 6e 2e 0a |ott.. H|ofmann..|
|00004eb0| 0a 09 2d 20 49 6d 70 72 | 6f 76 65 64 20 73 75 70 |..- Impr|oved sup|
|00004ec0| 70 6f 72 74 20 66 6f 72 | 20 56 4d 53 2c 20 69 6e |port for| VMS, in|
|00004ed0| 20 4d 49 53 43 2f 56 4d | 53 2f 2c 20 63 6f 6e 74 | MISC/VM|S/, cont|
|00004ee0| 72 69 62 75 74 65 64 20 | 62 79 20 50 61 74 20 52 |ributed |by Pat R|
|00004ef0| 61 6e 6b 69 6e 2e 0a 0a | 09 2d 20 53 75 70 70 6f |ankin...|.- Suppo|
|00004f00| 72 74 20 66 6f 72 20 74 | 68 65 20 41 6d 69 67 61 |rt for t|he Amiga|
|00004f10| 2c 20 69 6e 20 4d 49 53 | 43 2f 41 6d 69 67 61 2f |, in MIS|C/Amiga/|
|00004f20| 2c 20 63 6f 6e 74 72 69 | 62 75 74 65 64 20 62 79 |, contri|buted by|
|00004f30| 20 41 6e 64 72 65 61 73 | 0a 09 20 20 53 63 68 65 | Andreas|.. Sche|
|00004f40| 72 65 72 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |rer. No|te that |
|00004f50| 74 68 65 20 63 6f 6e 74 | 72 69 62 75 74 65 64 20 |the cont|ributed |
|00004f60| 66 69 6c 65 73 20 77 65 | 72 65 20 64 65 76 65 6c |files we|re devel|
|00004f70| 6f 70 65 64 20 66 6f 72 | 0a 09 20 20 66 6c 65 78 |oped for|.. flex|
|00004f80| 20 32 2e 34 20 61 6e 64 | 20 68 61 76 65 20 6e 6f | 2.4 and| have no|
|00004f90| 74 20 62 65 65 6e 20 74 | 65 73 74 65 64 20 77 69 |t been t|ested wi|
|00004fa0| 74 68 20 66 6c 65 78 20 | 32 2e 35 2e 0a 0a 09 2d |th flex |2.5....-|
|00004fb0| 20 53 6f 6d 65 20 6e 6f | 74 65 73 20 6f 6e 20 73 | Some no|tes on s|
|00004fc0| 75 70 70 6f 72 74 20 66 | 6f 72 20 74 68 65 20 4e |upport f|or the N|
|00004fd0| 65 58 54 2c 20 69 6e 20 | 4d 49 53 43 2f 4e 65 58 |eXT, in |MISC/NeX|
|00004fe0| 54 2c 20 63 6f 6e 74 72 | 69 62 75 74 65 64 0a 09 |T, contr|ibuted..|
|00004ff0| 20 20 62 79 20 52 61 66 | 20 53 63 68 69 65 74 65 | by Raf| Schiete|
|00005000| 6b 61 74 2e 0a 0a 09 2d | 20 54 68 65 20 4d 49 53 |kat....-| The MIS|
|00005010| 43 2f 20 64 69 72 65 63 | 74 6f 72 79 20 6e 6f 77 |C/ direc|tory now|
|00005020| 20 69 6e 63 6c 75 64 65 | 73 20 61 20 70 72 65 66 | include|s a pref|
|00005030| 6f 72 6d 61 74 74 65 64 | 20 76 65 72 73 69 6f 6e |ormatted| version|
|00005040| 20 6f 66 20 66 6c 65 78 | 2e 31 0a 09 20 20 69 6e | of flex|.1.. in|
|00005050| 20 66 6c 65 78 2e 6d 61 | 6e 2c 20 61 6e 64 20 70 | flex.ma|n, and p|
|00005060| 72 65 2d 79 61 63 63 27 | 64 20 76 65 72 73 69 6f |re-yacc'|d versio|
|00005070| 6e 73 20 6f 66 20 70 61 | 72 73 65 2e 79 20 69 6e |ns of pa|rse.y in|
|00005080| 20 70 61 72 73 65 2e 7b | 63 2c 68 7d 2e 0a 0a 09 | parse.{|c,h}....|
|00005090| 2d 20 54 68 65 20 66 6c | 65 78 2e 31 20 61 6e 64 |- The fl|ex.1 and|
|000050a0| 20 66 6c 65 78 64 6f 63 | 2e 31 20 6d 61 6e 75 61 | flexdoc|.1 manua|
|000050b0| 6c 20 70 61 67 65 73 20 | 68 61 76 65 20 62 65 65 |l pages |have bee|
|000050c0| 6e 20 6d 65 72 67 65 64 | 2e 20 20 54 68 65 72 65 |n merged|. There|
|000050d0| 0a 09 20 20 69 73 20 6e | 6f 77 20 6a 75 73 74 20 |.. is n|ow just |
|000050e0| 6f 6e 65 20 64 6f 63 75 | 6d 65 6e 74 2c 20 66 6c |one docu|ment, fl|
|000050f0| 65 78 2e 31 2c 20 77 68 | 69 63 68 20 69 6e 63 6c |ex.1, wh|ich incl|
|00005100| 75 64 65 73 20 61 6e 20 | 6f 76 65 72 76 69 65 77 |udes an |overview|
|00005110| 0a 09 20 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |.. at t|he begin|
|00005120| 6e 69 6e 67 20 74 6f 20 | 68 65 6c 70 20 79 6f 75 |ning to |help you|
|00005130| 20 66 69 6e 64 20 74 68 | 65 20 73 65 63 74 69 6f | find th|e sectio|
|00005140| 6e 20 79 6f 75 20 6e 65 | 65 64 2e 0a 0a 09 2d 20 |n you ne|ed....- |
|00005150| 44 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 6e 6f |Document|ation no|
|00005160| 77 20 63 6c 61 72 69 66 | 69 65 73 20 74 68 61 74 |w clarif|ies that|
|00005170| 20 73 74 61 72 74 20 63 | 6f 6e 64 69 74 69 6f 6e | start c|ondition|
|00005180| 73 20 70 65 72 73 69 73 | 74 20 61 63 72 6f 73 73 |s persis|t across|
|00005190| 0a 09 20 20 73 77 69 74 | 63 68 65 73 20 74 6f 20 |.. swit|ches to |
|000051a0| 6e 65 77 20 69 6e 70 75 | 74 20 66 69 6c 65 73 20 |new inpu|t files |
|000051b0| 6f 72 20 64 69 66 66 65 | 72 65 6e 74 20 69 6e 70 |or diffe|rent inp|
|000051c0| 75 74 20 62 75 66 66 65 | 72 73 2e 20 20 49 66 20 |ut buffe|rs. If |
|000051d0| 79 6f 75 0a 09 20 20 77 | 61 6e 74 20 74 6f 20 65 |you.. w|ant to e|
|000051e0| 2e 67 2e 2c 20 72 65 74 | 75 72 6e 20 74 6f 20 49 |.g., ret|urn to I|
|000051f0| 4e 49 54 49 41 4c 2c 20 | 79 6f 75 20 6d 75 73 74 |NITIAL, |you must|
|00005200| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 64 6f 20 73 | explici|tly do s|
|00005210| 6f 2e 0a 0a 09 2d 20 54 | 68 65 20 22 50 65 72 66 |o....- T|he "Perf|
|00005220| 6f 72 6d 61 6e 63 65 20 | 43 6f 6e 73 69 64 65 72 |ormance |Consider|
|00005230| 61 74 69 6f 6e 73 22 20 | 73 65 63 74 69 6f 6e 20 |ations" |section |
|00005240| 6f 66 20 74 68 65 20 6d | 61 6e 75 61 6c 20 68 61 |of the m|anual ha|
|00005250| 73 20 62 65 65 6e 0a 09 | 20 20 75 70 64 61 74 65 |s been..| update|
|00005260| 64 2e 0a 0a 09 2d 20 44 | 6f 63 75 6d 65 6e 74 65 |d....- D|ocumente|
|00005270| 64 20 74 68 65 20 22 79 | 79 5f 61 63 74 22 20 76 |d the "y|y_act" v|
|00005280| 61 72 69 61 62 6c 65 2c | 20 77 68 69 63 68 20 77 |ariable,| which w|
|00005290| 68 65 6e 20 59 59 5f 55 | 53 45 52 5f 41 43 54 49 |hen YY_U|SER_ACTI|
|000052a0| 4f 4e 20 69 73 0a 09 20 | 20 69 6e 76 6f 6b 65 64 |ON is.. | invoked|
|000052b0| 20 68 6f 6c 64 73 20 74 | 68 65 20 6e 75 6d 62 65 | holds t|he numbe|
|000052c0| 72 20 6f 66 20 74 68 65 | 20 6d 61 74 63 68 65 64 |r of the| matched|
|000052d0| 20 72 75 6c 65 2c 20 61 | 6e 64 20 61 64 64 65 64 | rule, a|nd added|
|000052e0| 20 61 6e 0a 09 20 20 65 | 78 61 6d 70 6c 65 20 6f | an.. e|xample o|
|000052f0| 66 20 75 73 69 6e 67 20 | 79 79 5f 61 63 74 20 74 |f using |yy_act t|
|00005300| 6f 20 70 72 6f 66 69 6c | 65 20 68 6f 77 20 6f 66 |o profil|e how of|
|00005310| 74 65 6e 20 65 61 63 68 | 20 72 75 6c 65 20 69 73 |ten each| rule is|
|00005320| 20 6d 61 74 63 68 65 64 | 2e 0a 0a 09 2d 20 41 64 | matched|....- Ad|
|00005330| 64 65 64 20 59 59 5f 4e | 55 4d 5f 52 55 4c 45 53 |ded YY_N|UM_RULES|
|00005340| 2c 20 61 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 74 |, a defi|nition t|
|00005350| 68 61 74 20 67 69 76 65 | 73 20 74 68 65 20 74 6f |hat give|s the to|
|00005360| 74 61 6c 20 6e 75 6d 62 | 65 72 0a 09 20 20 6f 66 |tal numb|er.. of|
|00005370| 20 72 75 6c 65 73 20 69 | 6e 20 74 68 65 20 66 69 | rules i|n the fi|
|00005380| 6c 65 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 74 68 |le, incl|uding th|
|00005390| 65 20 64 65 66 61 75 6c | 74 20 72 75 6c 65 20 28 |e defaul|t rule (|
|000053a0| 65 76 65 6e 20 69 66 20 | 79 6f 75 0a 09 20 20 75 |even if |you.. u|
|000053b0| 73 65 20 2d 73 29 2e 0a | 0a 09 2d 20 44 6f 63 75 |se -s)..|..- Docu|
|000053c0| 6d 65 6e 74 61 74 69 6f | 6e 20 6e 6f 77 20 63 6c |mentatio|n now cl|
|000053d0| 61 72 69 66 69 65 73 20 | 74 68 61 74 20 79 6f 75 |arifies |that you|
|000053e0| 20 63 61 6e 20 70 61 73 | 73 20 61 20 6e 69 6c 20 | can pas|s a nil |
|000053f0| 46 49 4c 45 2a 20 70 6f | 69 6e 74 65 72 0a 09 20 |FILE* po|inter.. |
|00005400| 20 74 6f 20 79 79 5f 63 | 72 65 61 74 65 5f 62 75 | to yy_c|reate_bu|
|00005410| 66 66 65 72 28 29 20 6f | 72 20 79 79 72 65 73 74 |ffer() o|r yyrest|
|00005420| 61 72 74 28 29 20 69 66 | 20 79 6f 75 27 76 65 20 |art() if| you've |
|00005430| 61 72 72 61 6e 67 65 20 | 59 59 5f 49 4e 50 55 54 |arrange |YY_INPUT|
|00005440| 0a 09 20 20 74 6f 20 6e | 6f 74 20 6e 65 65 64 20 |.. to n|ot need |
|00005450| 79 79 69 6e 2e 0a 0a 09 | 2d 20 44 6f 63 75 6d 65 |yyin....|- Docume|
|00005460| 6e 74 61 74 69 6f 6e 20 | 6e 6f 77 20 63 6c 61 72 |ntation |now clar|
|00005470| 69 66 69 65 73 20 74 68 | 61 74 20 59 59 5f 42 55 |ifies th|at YY_BU|
|00005480| 46 46 45 52 5f 53 54 41 | 54 45 20 69 73 20 61 20 |FFER_STA|TE is a |
|00005490| 70 6f 69 6e 74 65 72 20 | 74 6f 0a 09 20 20 61 6e |pointer |to.. an|
|000054a0| 20 6f 70 61 71 75 65 20 | 22 73 74 72 75 63 74 20 | opaque |"struct |
|000054b0| 79 79 5f 62 75 66 66 65 | 72 5f 73 74 61 74 65 22 |yy_buffe|r_state"|
|000054c0| 2e 0a 0a 09 2d 20 44 6f | 63 75 6d 65 6e 74 61 74 |....- Do|cumentat|
|000054d0| 69 6f 6e 20 6e 6f 77 20 | 73 74 72 65 73 73 65 73 |ion now |stresses|
|000054e0| 20 74 68 61 74 20 79 6f | 75 20 67 61 69 6e 20 74 | that yo|u gain t|
|000054f0| 68 65 20 62 65 6e 65 66 | 69 74 73 20 6f 66 20 72 |he benef|its of r|
|00005500| 65 6d 6f 76 69 6e 67 0a | 09 20 20 62 61 63 6b 69 |emoving.|. backi|
|00005510| 6e 67 2d 75 70 20 73 74 | 61 74 65 73 20 6f 6e 6c |ng-up st|ates onl|
|00005520| 79 20 69 66 20 79 6f 75 | 20 72 65 6d 6f 76 65 20 |y if you| remove |
|00005530| 2a 61 6c 6c 2a 20 6f 66 | 20 74 68 65 6d 2e 0a 0a |*all* of| them...|
|00005540| 09 2d 20 44 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |.- Docum|entation|
|00005550| 20 6e 6f 77 20 70 6f 69 | 6e 74 73 20 6f 75 74 20 | now poi|nts out |
|00005560| 74 68 61 74 20 74 72 61 | 64 69 74 69 6f 6e 61 6c |that tra|ditional|
|00005570| 20 6c 65 78 20 61 6c 6c | 6f 77 73 20 79 6f 75 0a | lex all|ows you.|
|00005580| 09 20 20 74 6f 20 70 75 | 74 20 74 68 65 20 61 63 |. to pu|t the ac|
|00005590| 74 69 6f 6e 20 6f 6e 20 | 61 20 73 65 70 61 72 61 |tion on |a separa|
|000055a0| 74 65 20 6c 69 6e 65 20 | 66 72 6f 6d 20 74 68 65 |te line |from the|
|000055b0| 20 72 75 6c 65 20 70 61 | 74 74 65 72 6e 20 69 66 | rule pa|ttern if|
|000055c0| 0a 09 20 20 74 68 65 20 | 70 61 74 74 65 72 6e 20 |.. the |pattern |
|000055d0| 68 61 73 20 74 72 61 69 | 6c 69 6e 67 20 77 68 69 |has trai|ling whi|
|000055e0| 74 65 73 70 61 63 65 20 | 28 75 67 68 21 29 2c 20 |tespace |(ugh!), |
|000055f0| 62 75 74 20 66 6c 65 78 | 20 64 6f 65 73 6e 27 74 |but flex| doesn't|
|00005600| 0a 09 20 20 73 75 70 70 | 6f 72 74 20 74 68 69 73 |.. supp|ort this|
|00005610| 2e 0a 0a 09 2d 20 41 20 | 62 72 6f 6b 65 6e 20 65 |....- A |broken e|
|00005620| 78 61 6d 70 6c 65 20 69 | 6e 20 64 6f 63 75 6d 65 |xample i|n docume|
|00005630| 6e 74 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 64 |ntation |of the d|
|00005640| 69 66 66 65 72 65 6e 63 | 65 20 62 65 74 77 65 65 |ifferenc|e betwee|
|00005650| 6e 0a 09 20 20 69 6e 63 | 6c 75 73 69 76 65 20 61 |n.. inc|lusive a|
|00005660| 6e 64 20 65 78 63 6c 75 | 73 69 76 65 20 73 74 61 |nd exclu|sive sta|
|00005670| 72 74 20 63 6f 6e 64 69 | 74 69 6f 6e 73 20 69 73 |rt condi|tions is|
|00005680| 20 6e 6f 77 20 66 69 78 | 65 64 2e 0a 0a 09 2d 20 | now fix|ed....- |
|00005690| 55 73 61 67 65 20 28 2d | 68 29 20 72 65 70 6f 72 |Usage (-|h) repor|
|000056a0| 74 20 6e 6f 77 20 67 6f | 65 73 20 74 6f 20 73 74 |t now go|es to st|
|000056b0| 64 6f 75 74 2e 0a 0a 09 | 2d 20 56 65 72 73 69 6f |dout....|- Versio|
|000056c0| 6e 20 28 2d 56 29 20 69 | 6e 66 6f 20 6e 6f 77 20 |n (-V) i|nfo now |
|000056d0| 67 6f 65 73 20 74 6f 20 | 73 74 64 6f 75 74 2e 0a |goes to |stdout..|
|000056e0| 0a 09 2d 20 4d 6f 72 65 | 20 23 69 66 64 65 66 20 |..- More| #ifdef |
|000056f0| 63 68 75 64 20 68 61 73 | 20 62 65 65 6e 20 61 64 |chud has| been ad|
|00005700| 64 65 64 20 74 6f 20 74 | 68 65 20 70 61 72 73 65 |ded to t|he parse|
|00005710| 72 20 69 6e 20 61 74 74 | 65 6d 70 74 20 74 6f 0a |r in att|empt to.|
|00005720| 09 20 20 64 65 61 6c 20 | 77 69 74 68 20 62 69 73 |. deal |with bis|
|00005730| 6f 6e 27 73 20 75 73 65 | 20 6f 66 20 61 6c 6c 6f |on's use| of allo|
|00005740| 63 61 28 29 2e 0a 0a 09 | 2d 20 22 6d 61 6b 65 20 |ca()....|- "make |
|00005750| 63 6c 65 61 6e 22 20 6e | 6f 20 6c 6f 6e 67 65 72 |clean" n|o longer|
|00005760| 20 64 65 6c 65 74 65 73 | 20 65 6d 61 63 73 20 62 | deletes| emacs b|
|00005770| 61 63 6b 75 70 20 66 69 | 6c 65 73 20 28 2a 7e 29 |ackup fi|les (*~)|
|00005780| 2e 0a 0a 09 2d 20 53 6f | 6d 65 20 6d 65 6d 6f 72 |....- So|me memor|
|00005790| 79 20 6c 65 61 6b 73 20 | 68 61 76 65 20 62 65 65 |y leaks |have bee|
|000057a0| 6e 20 66 69 78 65 64 2e | 0a 0a 09 2d 20 41 20 62 |n fixed.|...- A b|
|000057b0| 75 67 20 77 61 73 20 66 | 69 78 65 64 20 69 6e 20 |ug was f|ixed in |
|000057c0| 77 68 69 63 68 20 64 79 | 6e 61 6d 69 63 61 6c 6c |which dy|namicall|
|000057d0| 79 2d 65 78 70 61 6e 64 | 65 64 20 62 75 66 66 65 |y-expand|ed buffe|
|000057e0| 72 73 20 77 65 72 65 0a | 09 20 20 72 65 61 6c 6c |rs were.|. reall|
|000057f0| 6f 63 61 74 65 64 20 61 | 20 63 6f 75 70 6c 65 20 |ocated a| couple |
|00005800| 6f 66 20 62 79 74 65 73 | 20 74 6f 6f 20 73 6d 61 |of bytes| too sma|
|00005810| 6c 6c 2e 0a 0a 09 2d 20 | 41 20 62 75 67 20 77 61 |ll....- |A bug wa|
|00005820| 73 20 66 69 78 65 64 20 | 77 68 69 63 68 20 63 6f |s fixed |which co|
|00005830| 75 6c 64 20 63 61 75 73 | 65 20 66 6c 65 78 20 74 |uld caus|e flex t|
|00005840| 6f 20 72 65 61 64 20 61 | 6e 64 20 77 72 69 74 65 |o read a|nd write|
|00005850| 20 62 65 79 6f 6e 64 0a | 09 20 20 74 68 65 20 65 | beyond.|. the e|
|00005860| 6e 64 20 6f 66 20 74 68 | 65 20 69 6e 70 75 74 20 |nd of th|e input |
|00005870| 62 75 66 66 65 72 2e 0a | 0a 09 2d 20 2d 53 20 77 |buffer..|..- -S w|
|00005880| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 67 6f 69 6e 67 |ill not |be going|
|00005890| 20 61 77 61 79 2e 0a 0a | 0a 43 68 61 6e 67 65 73 | away...|.Changes|
|000058a0| 20 62 65 74 77 65 65 6e | 20 72 65 6c 65 61 73 65 | between| release|
|000058b0| 20 32 2e 34 2e 37 20 28 | 30 33 41 75 67 39 34 29 | 2.4.7 (|03Aug94)|
|000058c0| 20 61 6e 64 20 72 65 6c | 65 61 73 65 20 32 2e 34 | and rel|ease 2.4|
|000058d0| 2e 36 3a 0a 0a 09 2d 20 | 46 69 78 65 64 20 73 65 |.6:...- |Fixed se|
|000058e0| 72 69 6f 75 73 20 62 75 | 67 20 69 6e 20 72 65 61 |rious bu|g in rea|
|000058f0| 64 69 6e 67 20 6d 75 6c | 74 69 70 6c 65 20 66 69 |ding mul|tiple fi|
|00005900| 6c 65 73 2e 0a 0a 09 2d | 20 46 69 78 65 64 20 62 |les....-| Fixed b|
|00005910| 75 67 20 69 6e 20 73 63 | 61 6e 6e 69 6e 67 20 4e |ug in sc|anning N|
|00005920| 55 4c 27 73 2e 0a 0a 09 | 2d 20 46 69 78 65 64 20 |UL's....|- Fixed |
|00005930| 62 75 67 20 69 6e 20 69 | 6e 70 75 74 28 29 20 72 |bug in i|nput() r|
|00005940| 65 74 75 72 6e 69 6e 67 | 20 38 2d 62 69 74 20 63 |eturning| 8-bit c|
|00005950| 68 61 72 61 63 74 65 72 | 73 2e 0a 0a 09 2d 20 46 |haracter|s....- F|
|00005960| 69 78 65 64 20 62 75 67 | 20 69 6e 20 6d 61 74 63 |ixed bug| in matc|
|00005970| 68 69 6e 67 20 74 65 78 | 74 20 77 69 74 68 20 65 |hing tex|t with e|
|00005980| 6d 62 65 64 64 65 64 20 | 4e 55 4c 27 73 20 77 68 |mbedded |NUL's wh|
|00005990| 65 6e 0a 09 20 20 75 73 | 69 6e 67 20 25 61 72 72 |en.. us|ing %arr|
|000059a0| 61 79 20 6f 72 20 6c 65 | 78 20 63 6f 6d 70 61 74 |ay or le|x compat|
|000059b0| 69 62 69 6c 69 74 79 2e | 0a 0a 09 2d 20 46 69 78 |ibility.|...- Fix|
|000059c0| 65 64 20 6d 75 6c 74 69 | 70 6c 65 20 69 6e 76 6f |ed multi|ple invo|
|000059d0| 63 61 74 69 6f 6e 73 20 | 6f 66 20 59 59 5f 55 53 |cations |of YY_US|
|000059e0| 45 52 5f 41 43 54 49 4f | 4e 20 77 68 65 6e 20 75 |ER_ACTIO|N when u|
|000059f0| 73 69 6e 67 20 27 7c 27 | 0a 09 20 20 63 6f 6e 74 |sing '|'|.. cont|
|00005a00| 69 6e 75 61 74 69 6f 6e | 20 61 63 74 69 6f 6e 2e |inuation| action.|
|00005a10| 0a 0a 09 2d 20 4d 69 6e | 6f 72 20 70 72 6f 74 6f |...- Min|or proto|
|00005a20| 74 79 70 69 6e 67 20 66 | 69 78 65 73 2e 0a 0a 43 |typing f|ixes...C|
|00005a30| 68 61 6e 67 65 73 20 62 | 65 74 77 65 65 6e 20 72 |hanges b|etween r|
|00005a40| 65 6c 65 61 73 65 20 32 | 2e 34 2e 36 20 28 30 34 |elease 2|.4.6 (04|
|00005a50| 4a 61 6e 39 34 29 20 61 | 6e 64 20 72 65 6c 65 61 |Jan94) a|nd relea|
|00005a60| 73 65 20 32 2e 34 2e 35 | 3a 0a 0a 09 2d 20 4c 69 |se 2.4.5|:...- Li|
|00005a70| 6e 6b 69 6e 67 20 77 69 | 74 68 20 2d 6c 66 6c 20 |nking wi|th -lfl |
|00005a80| 6e 6f 20 6c 6f 6e 67 65 | 72 20 72 65 71 75 69 72 |no longe|r requir|
|00005a90| 65 64 20 69 66 20 79 6f | 75 72 20 70 72 6f 67 72 |ed if yo|ur progr|
|00005aa0| 61 6d 20 69 6e 63 6c 75 | 64 65 73 0a 09 20 20 69 |am inclu|des.. i|
|00005ab0| 74 73 20 6f 77 6e 20 79 | 79 77 72 61 70 28 29 20 |ts own y|ywrap() |
|00005ac0| 61 6e 64 20 6d 61 69 6e | 28 29 20 66 75 6e 63 74 |and main|() funct|
|00005ad0| 69 6f 6e 73 2e 20 20 28 | 54 68 69 73 20 63 68 61 |ions. (|This cha|
|00005ae0| 6e 67 65 20 77 69 6c 6c | 20 63 61 75 73 65 0a 09 |nge will| cause..|
|00005af0| 20 20 70 72 6f 62 6c 65 | 6d 73 20 69 66 20 79 6f | proble|ms if yo|
|00005b00| 75 20 68 61 76 65 20 61 | 20 6e 6f 6e 2d 41 4e 53 |u have a| non-ANS|
|00005b10| 49 20 63 6f 6d 70 69 6c | 65 72 20 6f 6e 20 61 20 |I compil|er on a |
|00005b20| 73 79 73 74 65 6d 20 66 | 6f 72 20 77 68 69 63 68 |system f|or which|
|00005b30| 0a 09 20 20 73 69 7a 65 | 6f 66 28 69 6e 74 29 20 |.. size|of(int) |
|00005b40| 21 3d 20 73 69 7a 65 6f | 66 28 76 6f 69 64 2a 29 |!= sizeo|f(void*)|
|00005b50| 20 6f 72 20 73 69 7a 65 | 6f 66 28 69 6e 74 29 20 | or size|of(int) |
|00005b60| 21 3d 20 73 69 7a 65 6f | 66 28 73 69 7a 65 5f 74 |!= sizeo|f(size_t|
|00005b70| 29 2e 29 0a 0a 09 2d 20 | 54 68 65 20 75 73 65 20 |).)...- |The use |
|00005b80| 6f 66 20 27 65 78 74 65 | 72 6e 20 22 43 2b 2b 22 |of 'exte|rn "C++"|
|00005b90| 27 20 69 6e 20 46 6c 65 | 78 4c 65 78 65 72 2e 68 |' in Fle|xLexer.h|
|00005ba0| 20 68 61 73 20 62 65 65 | 6e 20 6d 6f 64 69 66 69 | has bee|n modifi|
|00005bb0| 65 64 20 74 6f 0a 09 20 | 20 67 65 74 20 61 72 6f |ed to.. | get aro|
|00005bc0| 75 6e 64 20 61 6e 20 69 | 6e 63 6f 6d 70 61 74 69 |und an i|ncompati|
|00005bd0| 62 69 6c 69 74 79 20 77 | 69 74 68 20 67 2b 2b 27 |bility w|ith g++'|
|00005be0| 73 20 68 65 61 64 65 72 | 20 66 69 6c 65 73 2e 0a |s header| files..|
|00005bf0| 0a 43 68 61 6e 67 65 73 | 20 62 65 74 77 65 65 6e |.Changes| between|
|00005c00| 20 72 65 6c 65 61 73 65 | 20 32 2e 34 2e 35 20 28 | release| 2.4.5 (|
|00005c10| 31 31 44 65 63 39 33 29 | 20 61 6e 64 20 72 65 6c |11Dec93)| and rel|
|00005c20| 65 61 73 65 20 32 2e 34 | 2e 34 3a 0a 0a 09 2d 20 |ease 2.4|.4:...- |
|00005c30| 46 69 78 65 64 20 62 75 | 67 20 62 72 65 61 6b 69 |Fixed bu|g breaki|
|00005c40| 6e 67 20 43 2b 2b 20 73 | 63 61 6e 6e 65 72 73 20 |ng C++ s|canners |
|00005c50| 74 68 61 74 20 75 73 65 | 20 52 45 4a 45 43 54 20 |that use| REJECT |
|00005c60| 6f 72 20 76 61 72 69 61 | 62 6c 65 0a 09 20 20 74 |or varia|ble.. t|
|00005c70| 72 61 69 6c 69 6e 67 20 | 63 6f 6e 74 65 78 74 2e |railing |context.|
|00005c80| 0a 0a 09 2d 20 46 69 78 | 65 64 20 73 65 72 69 6f |...- Fix|ed serio|
|00005c90| 75 73 20 69 6e 70 75 74 | 20 70 72 6f 62 6c 65 6d |us input| problem|
|00005ca0| 20 66 6f 72 20 69 6e 74 | 65 72 61 63 74 69 76 65 | for int|eractive|
|00005cb0| 20 73 63 61 6e 6e 65 72 | 73 20 6f 6e 0a 09 20 20 | scanner|s on.. |
|00005cc0| 73 79 73 74 65 6d 73 20 | 66 6f 72 20 77 68 69 63 |systems |for whic|
|00005cd0| 68 20 63 68 61 72 20 69 | 73 20 75 6e 73 69 67 6e |h char i|s unsign|
|00005ce0| 65 64 2e 0a 0a 09 2d 20 | 46 69 78 65 64 20 62 75 |ed....- |Fixed bu|
|00005cf0| 67 20 69 6e 20 69 6e 63 | 6f 72 72 65 63 74 6c 79 |g in inc|orrectly|
|00005d00| 20 74 72 65 61 74 69 6e | 67 20 27 24 27 20 6f 70 | treatin|g '$' op|
|00005d10| 65 72 61 74 6f 72 20 61 | 73 20 76 61 72 69 61 62 |erator a|s variab|
|00005d20| 6c 65 0a 09 20 20 74 72 | 61 69 6c 69 6e 67 20 63 |le.. tr|ailing c|
|00005d30| 6f 6e 74 65 78 74 2e 0a | 0a 09 2d 20 46 69 78 65 |ontext..|..- Fixe|
|00005d40| 64 20 62 75 67 20 69 6e | 20 2d 43 46 20 74 61 62 |d bug in| -CF tab|
|00005d50| 6c 65 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |le repre|sentatio|
|00005d60| 6e 20 74 68 61 74 20 63 | 6f 75 6c 64 20 6c 65 61 |n that c|ould lea|
|00005d70| 64 20 74 6f 0a 09 20 20 | 63 6f 72 72 75 70 74 20 |d to.. |corrupt |
|00005d80| 74 61 62 6c 65 73 2e 0a | 0a 09 2d 20 46 69 78 65 |tables..|..- Fixe|
|00005d90| 64 20 66 61 69 72 6c 79 | 20 62 65 6e 69 67 6e 20 |d fairly| benign |
|00005da0| 6d 65 6d 6f 72 79 20 6c | 65 61 6b 2e 0a 0a 09 2d |memory l|eak....-|
|00005db0| 20 41 64 64 65 64 20 60 | 65 78 74 65 72 6e 20 22 | Added `|extern "|
|00005dc0| 43 2b 2b 22 27 20 77 72 | 61 70 70 65 72 20 74 6f |C++"' wr|apper to|
|00005dd0| 20 46 6c 65 78 4c 65 78 | 65 72 2e 68 20 68 65 61 | FlexLex|er.h hea|
|00005de0| 64 65 72 2e 20 20 54 68 | 69 73 0a 09 20 20 73 68 |der. Th|is.. sh|
|00005df0| 6f 75 6c 64 20 6f 76 65 | 72 63 6f 6d 65 20 74 68 |ould ove|rcome th|
|00005e00| 65 20 67 2b 2b 20 32 2e | 35 2e 58 20 70 72 6f 62 |e g++ 2.|5.X prob|
|00005e10| 6c 65 6d 73 20 6d 65 6e | 74 69 6f 6e 65 64 20 69 |lems men|tioned i|
|00005e20| 6e 20 74 68 65 0a 09 20 | 20 4e 45 57 53 20 66 6f |n the.. | NEWS fo|
|00005e30| 72 20 72 65 6c 65 61 73 | 65 20 32 2e 34 2e 33 2e |r releas|e 2.4.3.|
|00005e40| 0a 0a 09 2d 20 43 68 61 | 6e 67 65 64 20 23 69 6e |...- Cha|nged #in|
|00005e50| 63 6c 75 64 65 20 6f 66 | 20 46 6c 65 78 4c 65 78 |clude of| FlexLex|
|00005e60| 65 72 2e 68 20 74 6f 20 | 75 73 65 20 3c 3e 20 69 |er.h to |use <> i|
|00005e70| 6e 73 74 65 61 64 20 6f | 66 20 22 22 2e 0a 0a 09 |nstead o|f ""....|
|00005e80| 2d 20 41 64 64 65 64 20 | 66 65 61 74 75 72 65 20 |- Added |feature |
|00005e90| 74 6f 20 63 6f 6e 74 72 | 6f 6c 20 77 68 65 74 68 |to contr|ol wheth|
|00005ea0| 65 72 20 74 68 65 20 73 | 63 61 6e 6e 65 72 20 61 |er the s|canner a|
|00005eb0| 74 74 65 6d 70 74 73 20 | 74 6f 0a 09 20 20 72 65 |ttempts |to.. re|
|00005ec0| 66 69 6c 6c 20 74 68 65 | 20 69 6e 70 75 74 20 62 |fill the| input b|
|00005ed0| 75 66 66 65 72 20 6f 6e | 63 65 20 69 74 27 73 20 |uffer on|ce it's |
|00005ee0| 65 78 68 61 75 73 74 65 | 64 2e 20 20 54 68 69 73 |exhauste|d. This|
|00005ef0| 20 66 65 61 74 75 72 65 | 0a 09 20 20 77 69 6c 6c | feature|.. will|
|00005f00| 20 62 65 20 64 6f 63 75 | 6d 65 6e 74 65 64 20 69 | be docu|mented i|
|00005f10| 6e 20 74 68 65 20 32 2e | 35 20 72 65 6c 65 61 73 |n the 2.|5 releas|
|00005f20| 65 2e 0a 0a 0a 43 68 61 | 6e 67 65 73 20 62 65 74 |e....Cha|nges bet|
|00005f30| 77 65 65 6e 20 72 65 6c | 65 61 73 65 20 32 2e 34 |ween rel|ease 2.4|
|00005f40| 2e 34 20 28 30 37 44 65 | 63 39 33 29 20 61 6e 64 |.4 (07De|c93) and|
|00005f50| 20 72 65 6c 65 61 73 65 | 20 32 2e 34 2e 33 3a 0a | release| 2.4.3:.|
|00005f60| 0a 09 2d 20 46 69 78 65 | 64 20 74 77 6f 20 73 65 |..- Fixe|d two se|
|00005f70| 72 69 6f 75 73 20 62 75 | 67 73 20 69 6e 20 73 63 |rious bu|gs in sc|
|00005f80| 61 6e 6e 69 6e 67 20 38 | 2d 62 69 74 20 63 68 61 |anning 8|-bit cha|
|00005f90| 72 61 63 74 65 72 73 2e | 0a 0a 09 2d 20 46 69 78 |racters.|...- Fix|
|00005fa0| 65 64 20 62 75 67 20 69 | 6e 20 59 59 5f 55 53 45 |ed bug i|n YY_USE|
|00005fb0| 52 5f 41 43 54 49 4f 4e | 20 74 68 61 74 20 63 61 |R_ACTION| that ca|
|00005fc0| 75 73 65 64 20 69 74 20 | 74 6f 20 62 65 20 65 78 |used it |to be ex|
|00005fd0| 65 63 75 74 65 64 0a 09 | 20 20 69 6e 61 70 70 72 |ecuted..| inappr|
|00005fe0| 6f 70 72 69 61 74 65 6c | 79 20 28 6f 6e 20 74 68 |opriatel|y (on th|
|00005ff0| 65 20 73 63 61 6e 6e 65 | 72 27 73 20 6f 77 6e 20 |e scanne|r's own |
|00006000| 69 6e 74 65 72 6e 61 6c | 20 61 63 74 69 6f 6e 73 |internal| actions|
|00006010| 2c 20 61 6e 64 0a 09 20 | 20 77 69 74 68 20 69 6e |, and.. | with in|
|00006020| 63 6f 72 72 65 63 74 20 | 79 79 74 65 78 74 2f 79 |correct |yytext/y|
|00006030| 79 6c 65 6e 67 20 76 61 | 6c 75 65 73 29 2e 0a 0a |yleng va|lues)...|
|00006040| 09 2d 20 46 69 78 65 64 | 20 62 75 67 20 69 6e 20 |.- Fixed| bug in |
|00006050| 70 6f 69 6e 74 69 6e 67 | 20 79 79 69 6e 20 61 74 |pointing| yyin at|
|00006060| 20 61 20 6e 65 77 20 66 | 69 6c 65 20 61 6e 64 20 | a new f|ile and |
|00006070| 72 65 73 75 6d 69 6e 67 | 20 73 63 61 6e 6e 69 6e |resuming| scannin|
|00006080| 67 2e 0a 0a 09 2d 20 50 | 6f 72 74 61 62 69 6c 69 |g....- P|ortabili|
|00006090| 74 79 20 66 69 78 20 72 | 65 67 61 72 64 69 6e 67 |ty fix r|egarding|
|000060a0| 20 6d 69 6e 2f 6d 61 78 | 2f 61 62 73 20 6d 61 63 | min/max|/abs mac|
|000060b0| 72 6f 73 20 63 6f 6e 66 | 6c 69 63 74 69 6e 67 20 |ros conf|licting |
|000060c0| 77 69 74 68 0a 09 20 20 | 66 75 6e 63 74 69 6f 6e |with.. |function|
|000060d0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 69 6e 20 | definit|ions in |
|000060e0| 73 74 61 6e 64 61 72 64 | 20 68 65 61 64 65 72 20 |standard| header |
|000060f0| 66 69 6c 65 73 2e 0a 0a | 09 2d 20 41 64 64 65 64 |files...|.- Added|
|00006100| 20 61 20 76 69 72 74 75 | 61 6c 20 4c 65 78 65 72 | a virtu|al Lexer|
|00006110| 45 72 72 6f 72 28 29 20 | 6d 65 74 68 6f 64 20 74 |Error() |method t|
|00006120| 6f 20 74 68 65 20 43 2b | 2b 20 79 79 46 6c 65 78 |o the C+|+ yyFlex|
|00006130| 4c 65 78 65 72 20 63 6c | 61 73 73 0a 09 20 20 66 |Lexer cl|ass.. f|
|00006140| 6f 72 20 72 65 70 6f 72 | 74 69 6e 67 20 65 72 72 |or repor|ting err|
|00006150| 6f 72 20 6d 65 73 73 61 | 67 65 73 20 69 6e 73 74 |or messa|ges inst|
|00006160| 65 61 64 20 6f 66 20 61 | 6c 77 61 79 73 20 75 73 |ead of a|lways us|
|00006170| 69 6e 67 20 63 65 72 72 | 2e 0a 0a 09 2d 20 41 64 |ing cerr|....- Ad|
|00006180| 64 65 64 20 77 61 72 6e | 69 6e 67 20 69 6e 20 66 |ded warn|ing in f|
|00006190| 6c 65 78 64 6f 63 20 74 | 68 61 74 20 74 68 65 20 |lexdoc t|hat the |
|000061a0| 43 2b 2b 20 73 63 61 6e | 6e 69 6e 67 20 63 6c 61 |C++ scan|ning cla|
|000061b0| 73 73 20 69 73 20 70 72 | 65 73 65 6e 74 6c 79 0a |ss is pr|esently.|
|000061c0| 09 20 20 65 78 70 65 72 | 69 6d 65 6e 74 61 6c 20 |. exper|imental |
|000061d0| 61 6e 64 20 73 75 62 6a | 65 63 74 20 74 6f 20 63 |and subj|ect to c|
|000061e0| 6f 6e 73 69 64 65 72 61 | 62 6c 65 20 63 68 61 6e |onsidera|ble chan|
|000061f0| 67 65 20 62 65 74 77 65 | 65 6e 20 6d 61 6a 6f 72 |ge betwe|en major|
|00006200| 0a 09 20 20 72 65 6c 65 | 61 73 65 73 2e 0a 0a 0a |.. rele|ases....|
|00006210| 43 68 61 6e 67 65 73 20 | 62 65 74 77 65 65 6e 20 |Changes |between |
|00006220| 72 65 6c 65 61 73 65 20 | 32 2e 34 2e 33 20 28 30 |release |2.4.3 (0|
|00006230| 33 44 65 63 39 33 29 20 | 61 6e 64 20 72 65 6c 65 |3Dec93) |and rele|
|00006240| 61 73 65 20 32 2e 34 2e | 32 3a 0a 0a 09 2d 20 46 |ase 2.4.|2:...- F|
|00006250| 69 78 65 64 20 62 75 67 | 20 63 61 75 73 69 6e 67 |ixed bug| causing|
|00006260| 20 66 61 74 61 6c 20 73 | 63 61 6e 6e 65 72 20 6d | fatal s|canner m|
|00006270| 65 73 73 61 67 65 73 20 | 74 6f 20 66 61 69 6c 20 |essages |to fail |
|00006280| 74 6f 20 70 72 69 6e 74 | 2e 0a 0a 09 2d 20 46 69 |to print|....- Fi|
|00006290| 78 65 64 20 74 68 69 6e | 67 73 20 73 6f 20 46 6c |xed thin|gs so Fl|
|000062a0| 65 78 4c 65 78 65 72 2e | 68 20 63 61 6e 20 62 65 |exLexer.|h can be|
|000062b0| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 6f 74 68 | include|d in oth|
|000062c0| 65 72 20 43 2b 2b 0a 09 | 20 20 73 6f 75 72 63 65 |er C++..| source|
|000062d0| 73 2e 20 20 4f 6e 65 20 | 73 69 64 65 2d 65 66 66 |s. One |side-eff|
|000062e0| 65 63 74 20 6f 66 20 74 | 68 69 73 20 63 68 61 6e |ect of t|his chan|
|000062f0| 67 65 20 69 73 20 74 68 | 61 74 20 2d 2b 20 61 6e |ge is th|at -+ an|
|00006300| 64 20 2d 43 46 0a 09 20 | 20 61 72 65 20 6e 6f 77 |d -CF.. | are now|
|00006310| 20 69 6e 63 6f 6d 70 61 | 74 69 62 6c 65 2e 0a 0a | incompa|tible...|
|00006320| 09 2d 20 6c 69 62 66 6c | 2e 61 20 6e 6f 77 20 73 |.- libfl|.a now s|
|00006330| 75 70 70 6c 69 65 73 20 | 70 72 69 76 61 74 65 20 |upplies |private |
|00006340| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |versions| of the |
|00006350| 74 68 65 20 3c 73 74 72 | 69 6e 67 2e 68 3e 2f 0a |the <str|ing.h>/.|
|00006360| 09 20 20 3c 73 74 72 69 | 6e 67 73 2e 68 3e 20 73 |. <stri|ngs.h> s|
|00006370| 74 72 69 6e 67 20 72 6f | 75 74 69 6e 65 73 20 6e |tring ro|utines n|
|00006380| 65 65 64 65 64 20 62 79 | 20 66 6c 65 78 20 61 6e |eeded by| flex an|
|00006390| 64 20 74 68 65 20 73 63 | 61 6e 6e 65 72 73 0a 09 |d the sc|anners..|
|000063a0| 20 20 69 74 20 67 65 6e | 65 72 61 74 65 73 2c 20 | it gen|erates, |
|000063b0| 74 6f 20 65 6e 68 61 6e | 63 65 20 70 6f 72 74 61 |to enhan|ce porta|
|000063c0| 62 69 6c 69 74 79 20 74 | 6f 20 73 6f 6d 65 20 42 |bility t|o some B|
|000063d0| 53 44 20 73 79 73 74 65 | 6d 73 2e 0a 0a 09 2d 20 |SD syste|ms....- |
|000063e0| 4d 6f 72 65 20 72 6f 62 | 75 73 74 20 73 6f 6c 75 |More rob|ust solu|
|000063f0| 74 69 6f 6e 20 74 6f 20 | 32 2e 34 2e 32 27 73 20 |tion to |2.4.2's |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.